From ce5375f95cc3d06cc74fb72d8688d2d9d7eff5a7 Mon Sep 17 00:00:00 2001 From: shao Date: Wed, 14 Aug 2019 16:32:54 +0800 Subject: [PATCH] test: remove unused var --- components/anchor/Anchor.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/anchor/Anchor.tsx b/components/anchor/Anchor.tsx index 681b168a65..37dd38591b 100644 --- a/components/anchor/Anchor.tsx +++ b/components/anchor/Anchor.tsx @@ -3,7 +3,6 @@ import * as ReactDOM from 'react-dom'; import * as PropTypes from 'prop-types'; import classNames from 'classnames'; import addEventListener from 'rc-util/lib/Dom/addEventListener'; -import raf from 'raf'; import Affix from '../affix'; import AnchorLink from './AnchorLink'; import { ConfigConsumer, ConfigConsumerProps } from '../config-provider'; @@ -162,7 +161,7 @@ export default class Anchor extends React.Component { if (this.scrollEvent) { this.scrollEvent.remove(); } - }; + } handleScrollTo = (link: string) => { const { offsetTop, getContainer, targetOffset } = this.props as AnchorDefaultProps;