]> cat aescling's git repositories - mastodon.git/commitdiff
Clean up some dead code
authorThibaut Girka <thib@sitedethib.com>
Fri, 10 Apr 2020 08:42:31 +0000 (10:42 +0200)
committerThibG <thib@sitedethib.com>
Fri, 10 Apr 2020 12:47:06 +0000 (14:47 +0200)
app/javascript/flavours/glitch/features/followers/index.js
app/javascript/flavours/glitch/features/following/index.js

index 2b86cc805a2bac3ad538537214ec671a266fc1c6..27495e5d109a1321de6fd8b2f26bbc4d25c11be7 100644 (file)
@@ -54,14 +54,6 @@ class Followers extends ImmutablePureComponent {
     this.column.scrollTop();
   }
 
-  handleScroll = (e) => {
-    const { scrollTop, scrollHeight, clientHeight } = e.target;
-
-    if (scrollTop === scrollHeight - clientHeight && this.props.hasMore) {
-      this.props.dispatch(expandFollowers(this.props.params.accountId));
-    }
-  }
-
   handleLoadMore = debounce(() => {
     this.props.dispatch(expandFollowers(this.props.params.accountId));
   }, 300, { leading: true });
index cf374e4941ddadbdbac377e39f52e836cd751f64..cfd814adcde62e63c2ec9a02f26cf6c0f1f040ab 100644 (file)
@@ -54,14 +54,6 @@ class Following extends ImmutablePureComponent {
     this.column.scrollTop();
   }
 
-  handleScroll = (e) => {
-    const { scrollTop, scrollHeight, clientHeight } = e.target;
-
-    if (scrollTop === scrollHeight - clientHeight && this.props.hasMore) {
-      this.props.dispatch(expandFollowing(this.props.params.accountId));
-    }
-  }
-
   handleLoadMore = debounce(() => {
     this.props.dispatch(expandFollowing(this.props.params.accountId));
   }, 300, { leading: true });