Remove unnecessary uses of getMoreChannels (#5982)

Этот коммит содержится в:
Joram Wilander
2017-04-04 20:07:51 -04:00
коммит произвёл enahum
родитель f7a4c75a21
Коммит 5d6cf3ace5
4 изменённых файлов: 1 добавлений и 41 удалений

Просмотреть файл

@@ -1562,18 +1562,6 @@ export default class Client {
this.trackEvent('api', 'api_channel_get', {team_id: this.getTeamId(), channel_id: channelId});
}
// SCHEDULED FOR DEPRECATION IN 3.7 - use getMoreChannelsPage instead
getMoreChannels(success, error) {
request.
get(`${this.getChannelsRoute()}/more`).
set(this.defaultHeaders).
type('application/json').
accept('application/json').
end(this.handleResponse.bind(this, 'getMoreChannels', success, error));
this.trackEvent('api', 'api_channels_more', {team_id: this.getTeamId()});
}
getMoreChannelsPage(offset, limit, success, error) {
request.
get(`${this.getChannelsRoute()}/more/${offset}/${limit}`).