From 3c7864a7ad0de95554143c851591afbd2d4f2deb Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 8 Sep 2016 14:52:08 +0100 Subject: [PATCH] remove unused _gatherTimelinePanelRef --- src/components/structures/FilePanel.js | 8 +------- src/components/structures/NotificationPanel.js | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/components/structures/FilePanel.js b/src/components/structures/FilePanel.js index 95fd978f59..f19d0cdc2b 100644 --- a/src/components/structures/FilePanel.js +++ b/src/components/structures/FilePanel.js @@ -88,12 +88,6 @@ var FilePanel = React.createClass({ } }, - // this has to be a proper method rather than an unnamed function, - // otherwise react calls it with null on each update. - _gatherTimelinePanelRef: function(r) { - //this.refs.messagePanel = r; - }, - render: function() { // wrap a TimelinePanel with the jump-to-event bits turned off. var TimelinePanel = sdk.getComponent("structures.TimelinePanel"); @@ -103,7 +97,7 @@ var FilePanel = React.createClass({ console.log("rendering TimelinePanel for timelineSet " + this.state.timelineSet.roomId + " " + "(" + this.state.timelineSet._timelines.join(", ") + ")" + " with key " + this.props.roomId); return ( -