Remove the unused capability
parameter from the WorkerTransport.getPage
method
That parameter, originally named `promise`, has been unused for over five years; ever since commit f0687c4d50
in PR 1531.
This commit is contained in:
parent
343f331b8b
commit
ab1f76cc37
@ -516,7 +516,7 @@ var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
|
||||
* @return {Promise} A promise that is resolved with a {@link PDFPageProxy}
|
||||
* object.
|
||||
*/
|
||||
getPage: function PDFDocumentProxy_getPage(pageNumber) {
|
||||
getPage(pageNumber) {
|
||||
return this.transport.getPage(pageNumber);
|
||||
},
|
||||
/**
|
||||
@ -1917,7 +1917,7 @@ var WorkerTransport = (function WorkerTransportClosure() {
|
||||
return this.messageHandler.sendWithPromise('GetData', null);
|
||||
},
|
||||
|
||||
getPage: function WorkerTransport_getPage(pageNumber, capability) {
|
||||
getPage(pageNumber) {
|
||||
if (!Number.isInteger(pageNumber) ||
|
||||
pageNumber <= 0 || pageNumber > this.numPages) {
|
||||
return Promise.reject(new Error('Invalid page request'));
|
||||
|
Loading…
Reference in New Issue
Block a user