From b4b941984172a201c5106262cc02ab507bb66de5 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 23 Jun 2023 10:37:27 +0200 Subject: [PATCH] Remove a couple of unused constants from `src/shared/util.js` These constants were added "speculatively" in PR 10820, almost four years ago, but have never actually been used. We already have issue 10982 that tracks *potentially* extending support for the affected annotation-format, however until that happens I really don't think that we should keep shipping completely unused code in the PDF.js library. For the MOZCENTRAL build-target, i.e. the Firefox PDF Viewer, this reduces the total bundle size by 1.1 kilo-byte. --- src/shared/util.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/shared/util.js b/src/shared/util.js index 16ff43502a0fe..05e7935f4ea93 100644 --- a/src/shared/util.js +++ b/src/shared/util.js @@ -142,24 +142,6 @@ const AnnotationType = { REDACT: 26, }; -const AnnotationStateModelType = { - MARKED: "Marked", - REVIEW: "Review", -}; - -const AnnotationMarkedState = { - MARKED: "Marked", - UNMARKED: "Unmarked", -}; - -const AnnotationReviewState = { - ACCEPTED: "Accepted", - REJECTED: "Rejected", - CANCELLED: "Cancelled", - COMPLETED: "Completed", - NONE: "None", -}; - const AnnotationReplyType = { GROUP: "Group", REPLY: "R", @@ -1040,11 +1022,8 @@ export { AnnotationEditorType, AnnotationFieldFlag, AnnotationFlag, - AnnotationMarkedState, AnnotationMode, AnnotationReplyType, - AnnotationReviewState, - AnnotationStateModelType, AnnotationType, assert, BaseException,