mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
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
1 changed files with 0 additions and 13 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue