From 5d6cf3ace5871aaa6b91abbc92bb90871be672bb Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 4 Apr 2017 20:07:51 -0400 Subject: Remove unnecessary uses of getMoreChannels (#5982) --- webapp/utils/async_client.jsx | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'webapp/utils/async_client.jsx') diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx index faaf3aee6..1879fed4a 100644 --- a/webapp/utils/async_client.jsx +++ b/webapp/utils/async_client.jsx @@ -208,30 +208,6 @@ export function viewChannel(channelId = ChannelStore.getCurrentId(), prevChannel ); } -export function getMoreChannels(force) { - if (isCallInProgress('getMoreChannels')) { - return; - } - - if (ChannelStore.getMoreAll().loading || force) { - callTracker.getMoreChannels = utils.getTimestamp(); - Client.getMoreChannels( - (data) => { - callTracker.getMoreChannels = 0; - - AppDispatcher.handleServerAction({ - type: ActionTypes.RECEIVED_MORE_CHANNELS, - channels: data - }); - }, - (err) => { - callTracker.getMoreChannels = 0; - dispatchError(err, 'getMoreChannels'); - } - ); - } -} - export function getMoreChannelsPage(offset, limit) { if (isCallInProgress('getMoreChannelsPage')) { return; -- cgit v1.2.3-1-g7c22