mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Remove the, now unused, releaseImageResources
helper function
With the changes in the previous patch, this is now dead code which should thus be removed.
This commit is contained in:
parent
0351852d74
commit
cc4cc8b11b
2 changed files with 0 additions and 24 deletions
|
@ -43,7 +43,6 @@ import {
|
|||
DOMCMapReaderFactory,
|
||||
loadScript,
|
||||
PageViewport,
|
||||
releaseImageResources,
|
||||
RenderingCancelledException,
|
||||
StatTimer,
|
||||
} from "./display_utils.js";
|
||||
|
@ -2581,14 +2580,6 @@ class PDFObjects {
|
|||
}
|
||||
|
||||
clear() {
|
||||
for (const objId in this._objs) {
|
||||
const { data } = this._objs[objId];
|
||||
|
||||
if (typeof Image !== "undefined" && data instanceof Image) {
|
||||
// Always release the image data when clearing out the cached objects.
|
||||
releaseImageResources(data);
|
||||
}
|
||||
}
|
||||
this._objs = Object.create(null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue