1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #13186 from Snuffleupagus/rm-deprecated-code

Remove some `deprecated` code
This commit is contained in:
Tim van der Meij 2021-04-07 20:38:59 +02:00 committed by GitHub
commit 5945f7c4a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 47 deletions

View file

@ -13,7 +13,6 @@
* limitations under the License.
*/
import { deprecated } from "./display_utils.js";
import { objectFromMap } from "../shared/util.js";
/**
@ -27,7 +26,7 @@ class AnnotationStorage {
// Callbacks to signal when the modification state is set or reset.
// This is used by the viewer to only bind on `beforeunload` if forms
// are actually edited to prevent doing so unconditionally since that
// can have undesirable efffects.
// can have undesirable effects.
this.onSetModified = null;
this.onResetModified = null;
}
@ -46,19 +45,6 @@ class AnnotationStorage {
return obj !== undefined ? obj : defaultValue;
}
/**
* @deprecated
*/
getOrCreateValue(key, defaultValue) {
deprecated("Use getValue instead.");
if (this._storage.has(key)) {
return this._storage.get(key);
}
this._storage.set(key, defaultValue);
return defaultValue;
}
/**
* Set the value for a given key
*