Skip to content

Commit

Permalink
Revert "Add deprecated handling of the now removed `AnnotationStora…
Browse files Browse the repository at this point in the history
…ge` API-parameters" (PR 13207 follow-up)

This reverts commit 737a8e8, since it's included in the latest beta version `2.9.359`.
  • Loading branch information
Snuffleupagus committed May 30, 2021
1 parent 13dbbdc commit d8a7c75
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -962,12 +962,6 @@ class PDFDocumentProxy {
* {Uint8Array} containing the full data of the saved document.
*/
saveDocument() {
if (
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
arguments.length > 0
) {
deprecated("saveDocument no longer accepts any options.");
}
if (
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
this._transport.annotationStorage.size <= 0
Expand Down Expand Up @@ -1282,16 +1276,6 @@ class PDFPageProxy {
includeAnnotationStorage = false,
optionalContentConfigPromise = null,
}) {
if (
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
arguments[0]?.annotationStorage !== undefined
) {
deprecated(
"render no longer accepts an `annotationStorage` option, " +
"please use the `includeAnnotationStorage`-boolean instead."
);
includeAnnotationStorage ||= !!arguments[0].annotationStorage;
}
if (this._stats) {
this._stats.time("Overall");
}
Expand Down

0 comments on commit d8a7c75

Please sign in to comment.