Merge pull request #15870 from Snuffleupagus/rm-PDFPageProxy-getJSActions-caching

Remove `PDFPageProxy.getJSActions` caching, since it's unused, in the API
This commit is contained in:
Jonas Jenwald 2022-12-27 13:25:24 +01:00 committed by GitHub
commit 1dce95613a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1338,9 +1338,7 @@ class PDFPageProxy {
* {Object} with JS actions. * {Object} with JS actions.
*/ */
getJSActions() { getJSActions() {
return (this._jsActionsPromise ||= this._transport.getPageJSActions( return this._transport.getPageJSActions(this._pageIndex);
this._pageIndex
));
} }
/** /**
@ -1656,7 +1654,6 @@ class PDFPageProxy {
bitmap.close(); bitmap.close();
} }
this._bitmaps.clear(); this._bitmaps.clear();
this._jsActionsPromise = null;
this.pendingCleanup = false; this.pendingCleanup = false;
return Promise.all(waitOn); return Promise.all(waitOn);
} }
@ -1689,7 +1686,6 @@ class PDFPageProxy {
this._intentStates.clear(); this._intentStates.clear();
this.objs.clear(); this.objs.clear();
this._jsActionsPromise = null;
if (resetStats && this._stats) { if (resetStats && this._stats) {
this._stats = new StatTimer(); this._stats = new StatTimer();
} }