Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 05ddee6

Browse files
committed
remove dead code
1 parent c39c0e4 commit 05ddee6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/components/structures/RoomSubList.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -282,20 +282,6 @@ const RoomSubList = React.createClass({
282282
this.setState({scrollTop: this.refs.scroller.getScrollTop()});
283283
},
284284

285-
_getList: function() {
286-
// try our best to not create a new array
287-
// because LazyRenderList rerender when the items prop
288-
// is not the same object as the previous value
289-
const {list, extraTiles} = this.props;
290-
if (!extraTiles || !extraTiles.length) {
291-
return list;
292-
}
293-
if (!list || list.length) {
294-
return extraTiles;
295-
}
296-
return list.concat(extraTiles);
297-
},
298-
299285
_canUseLazyListRendering() {
300286
// for now disable lazy rendering as they are already rendered tiles
301287
// not rooms like props.list we pass to LazyRenderList

0 commit comments

Comments
 (0)