final component conversions

This commit is contained in:
Colin Megill
2018-08-03 15:18:40 -04:00
parent 7ae1db627c
commit cb6b784dfd
2 changed files with 16 additions and 26 deletions
@@ -49,9 +49,6 @@ class HistogramBrush extends React.Component {
brush: null
};
}
componentDidMount() {}
componentDidUpdate() {}
calcHistogramCache(nextProps) {
// recalculate expensive stuff
const allValuesForContinuousFieldAsArray = _.map(
@@ -80,14 +77,6 @@ class HistogramBrush extends React.Component {
componentWillMount() {
this.calcHistogramCache(this.props);
}
componentWillReceiveProps(nextProps) {
if (
this.props.metadataField !== nextProps.metadataField ||
!this.histogramCache.x
) {
this.calcHistogramCache(nextProps);
}
}
onBrush(selection, x) {
return () => {