chore: Remove unused state

This commit is contained in:
Fabio Berger 2018-10-15 16:49:46 +01:00
parent c9a0c7872d
commit 96d145f54f

View File

@ -50,17 +50,9 @@ export interface DocReferenceProps {
docAgnosticFormat?: DocAgnosticFormat;
}
export interface DocReferenceState {
isHoveringSidebar: boolean;
}
export interface DocReferenceState {}
export class DocReference extends React.Component<DocReferenceProps, DocReferenceState> {
constructor(props: DocReferenceProps) {
super(props);
this.state = {
isHoveringSidebar: false,
};
}
public componentDidMount(): void {
window.addEventListener('hashchange', this._onHashChanged.bind(this), false);
}
@ -329,16 +321,6 @@ export class DocReference extends React.Component<DocReferenceProps, DocReferenc
/>
);
}
private _onSidebarHover(_event: React.FormEvent<HTMLInputElement>): void {
this.setState({
isHoveringSidebar: true,
});
}
private _onSidebarHoverOff(): void {
this.setState({
isHoveringSidebar: false,
});
}
private _onHashChanged(_event: any): void {
const hash = window.location.hash.slice(1);
sharedUtils.scrollToHash(hash, sharedConstants.SCROLL_CONTAINER_ID);