message: remove unused onResize
diff: @@ -89,15 +89,6 @@ class Slider extends Component<SliderProps, SliderState> {
  e.originalEvent.preventDefault();
  };
  - onResize: OnSliderResize = (callback?: VoidFunction) => {
  - const boundingRect = this.container.getBoundingClientRect();
  - this.setState({
  - containerWidth: boundingRect.width,
  - }, () => {
  - typeof callback === 'function' && callback();
  - });
  - };
  -
  onChange(value: number, e: TouchEvent) {
  this.props.onChange && this.props.onChange(value, e);
  }
  @@ -148,8 +139,10 @@ class Slider extends Component<SliderProps, SliderState> {
  componentDidMount() {
  if (canUseDOM) {
  - window.addEventListener('resize', this.onResize);
  - this.onResize(() => {
  + const boundingRect = this.container.getBoundingClientRect();
  + this.setState({
  + containerWidth: boundingRect.width,
  + }, () => {
  this.setState({ percentPosition: this.validatePercent(this.valueToPercent(this.value)) });
  });
  }
  @@ -161,10 +154,6 @@ class Slider extends Component<SliderProps, SliderState> {
  }
  }
  - componentWillUnmount() {
  - window.removeEventListener('resize', this.onResize);
  - }
  -
  getRef: RefCallback<HTMLDivElement> = (container) => {
  this.container = container;
  setRef(container, this.props.getRootRef);
  