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:
commit
4cfeda31fa
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user