Merge pull request #11976 from Snuffleupagus/rm-dead-network-code

Remove unused methods from `NetworkManager`, in `src/display/network.js`
This commit is contained in:
Tim van der Meij 2020-06-07 17:27:06 +02:00 committed by GitHub
commit 4cfeda31fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,13 +198,6 @@ class NetworkManager {
}
}
hasPendingRequests() {
for (const xhrId in this.pendingRequests) {
return true;
}
return false;
}
getRequestXhr(xhrId) {
return this.pendingRequests[xhrId].xhr;
}
@ -213,12 +206,6 @@ class NetworkManager {
return xhrId in this.pendingRequests;
}
abortAllRequests() {
for (const xhrId in this.pendingRequests) {
this.abortRequest(xhrId | 0);
}
}
abortRequest(xhrId) {
const xhr = this.pendingRequests[xhrId].xhr;
delete this.pendingRequests[xhrId];