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:
Jonas Jenwald 2020-01-29 11:14:01 +01:00
parent 0351852d74
commit cc4cc8b11b
2 changed files with 0 additions and 24 deletions

View file

@ -517,20 +517,6 @@ function deprecated(details) {
console.log("Deprecated API usage: " + details);
}
function releaseImageResources(img) {
assert(img instanceof Image, "Invalid `img` parameter.");
const url = img.src;
if (
typeof url === "string" &&
url.startsWith("blob:") &&
URL.revokeObjectURL
) {
URL.revokeObjectURL(url);
}
img.removeAttribute("src");
}
let pdfDateStringRegex;
class PDFDateString {
@ -631,6 +617,5 @@ export {
isValidFetchUrl,
loadScript,
deprecated,
releaseImageResources,
PDFDateString,
};