From 38236428630bf0d93628939dcb3912f6a3ea5cd5 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 22 Feb 2019 13:16:16 +0100 Subject: [PATCH] some cleanup --- src/components/structures/ScrollPanel.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/structures/ScrollPanel.js b/src/components/structures/ScrollPanel.js index 154f7dfc12..ecfdfd5db2 100644 --- a/src/components/structures/ScrollPanel.js +++ b/src/components/structures/ScrollPanel.js @@ -590,7 +590,6 @@ module.exports = React.createClass({ let node = null; let nodeBottom; - // TODO: change this to not use getBoundingClientRect and save the domnode for (let i = messages.length-1; i >= 0; --i) { if (!messages[i].dataset.scrollTokens) { continue; @@ -623,7 +622,6 @@ module.exports = React.createClass({ _restoreSavedScrollState: function() { const scrollState = this.scrollState; - const scrollNode = this._getScrollNode(); if (scrollState.stuckAtBottom) { this._setScrollTop(Number.MAX_VALUE);