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:
Jonas Jenwald 2017-11-25 11:49:33 +01:00
parent 343f331b8b
commit ab1f76cc37

View File

@ -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'));