From 490e74036556427107ab87f9e2792b19714575e5 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 15 Dec 2024 14:13:44 +0100 Subject: [PATCH] [api-minor] Remove deprecated `getDocument` options (PR 18776 follow-up) --- src/display/api.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/display/api.js b/src/display/api.js index 5f435fdd7ff49..1594d7cb2bfd1 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -43,15 +43,14 @@ import { PrintAnnotationStorage, SerializableEmpty, } from "./annotation_storage.js"; +import { FontFaceObject, FontLoader } from "./font_loader.js"; import { - deprecated, isDataScheme, isValidFetchUrl, PageViewport, RenderingCancelledException, StatTimer, } from "./display_utils.js"; -import { FontFaceObject, FontLoader } from "./font_loader.js"; import { NodeCanvasFactory, NodeCMapReaderFactory, @@ -339,19 +338,6 @@ function getDocument(src = {}) { isValidFetchUrl(cMapUrl, document.baseURI) && isValidFetchUrl(standardFontDataUrl, document.baseURI)); - if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) { - if (src.canvasFactory) { - deprecated( - "`canvasFactory`-instance option, please use `CanvasFactory` instead." - ); - } - if (src.filterFactory) { - deprecated( - "`filterFactory`-instance option, please use `FilterFactory` instead." - ); - } - } - // Parameters only intended for development/testing purposes. const styleElement = typeof PDFJSDev === "undefined" || PDFJSDev.test("TESTING")