mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
remove unused code
This commit is contained in:
parent
4b29e40089
commit
ce51768fac
@ -17,13 +17,6 @@ export function collect(nextProps, callback) {
|
||||
}
|
||||
|
||||
export default class Home extends React.Component {
|
||||
componentWillMount() {
|
||||
if (location.hash) {
|
||||
const pathname = location.hash.replace(/^#/, '').replace('?scrollTo=', '#');
|
||||
location.href = pathname;
|
||||
}
|
||||
}
|
||||
|
||||
// To store style which is only for Home and has conflicts with others.
|
||||
getStyle() {
|
||||
return `
|
||||
|
Loading…
Reference in New Issue
Block a user