@@ -16,7 +16,6 @@ import {
1616
1717
1818const compareQueryItems = ( linkQueryItem , routeQueryItem ) => {
19-
2019 linkQueryItem = [ ] . concat ( linkQueryItem ) ;
2120 routeQueryItem = [ ] . concat ( routeQueryItem ) ;
2221
@@ -28,7 +27,6 @@ const compareQueryItems = (linkQueryItem, routeQueryItem) => {
2827} ;
2928
3029function filterProps ( props ) {
31-
3230 const propsCopy = Object . assign ( { } , props ) ;
3331
3432 const managedProps = [ 'to' , 'activeClass' , 'method' , 'activeMatch' ] ;
@@ -43,7 +41,6 @@ function filterProps(props) {
4341class Link extends BaseRouterComponent {
4442
4543 constructor ( props , context ) {
46-
4744 super ( props , context ) ;
4845
4946 this . handleClick = this . handleClick . bind ( this ) ;
@@ -55,7 +52,6 @@ class Link extends BaseRouterComponent {
5552 }
5653
5754 componentWillReceiveProps ( newProps ) {
58-
5955 if ( this . props . to !== newProps . to ) {
6056 this . href = this . getHref ( newProps ) ;
6157 }
@@ -71,7 +67,6 @@ class Link extends BaseRouterComponent {
7167 }
7268
7369 handleClick ( e ) {
74-
7570 const { onClick } = this . props ;
7671
7772 if ( typeof onClick === 'function' ) {
@@ -107,7 +102,6 @@ class Link extends BaseRouterComponent {
107102 }
108103
109104 handleStoreChange ( ) {
110-
111105 if ( ! this . isSubscribed ) return ;
112106
113107 const { activeClass, activeMatch } = this . props ;
@@ -166,7 +160,6 @@ class Link extends BaseRouterComponent {
166160 }
167161
168162 render ( ) {
169-
170163 const { children, activeClass, className, target = null } = this . props ;
171164 const classes = this . state . isActive ? `${ className } ${ activeClass } ` : className ;
172165
0 commit comments