server: clientGatewayService: remove unused PROCESS_TRANSFER_RATE_START event

This commit is contained in:
Jesse Chan
2020-10-29 12:14:00 +08:00
parent e5064ffe8f
commit 7e56cd99ac
3 changed files with 0 additions and 3 deletions
@@ -27,7 +27,6 @@ interface ClientGatewayServiceEvents {
PROCESS_TORRENT_LIST_START: () => void;
PROCESS_TORRENT_LIST_END: (torrentListSummary: TorrentListSummary) => void;
PROCESS_TORRENT: (torrentProperties: TorrentProperties) => void;
PROCESS_TRANSFER_RATE_START: () => void;
}
abstract class ClientGatewayService extends BaseService<ClientGatewayServiceEvents> {
@@ -289,7 +289,6 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
.getTransferInfo()
.then(this.processClientRequestSuccess, this.processClientRequestError)
.then((info) => {
this.emit('PROCESS_TRANSFER_RATE_START');
return {
downRate: info.dl_info_speed,
downThrottle: info.dl_rate_limit,
@@ -596,7 +596,6 @@ class RTorrentClientGatewayService extends ClientGatewayService {
.methodCall('system.multicall', [methodCalls])
.then(this.processClientRequestSuccess, this.processClientRequestError)
.then((response) => {
this.emit('PROCESS_TRANSFER_RATE_START');
return processMethodCallResponse(response, configs);
}) || Promise.reject()
);