[api-major] Remove some deprecated constants

All of the these constants have been deprecated for a while, and with the upcoming *major* version this seems like a good time to remove them.
For the string-constants we can simply remove them, but the number-constants are left commented out since we don't want to re-number the list to prevent third-party breakage.
This commit is contained in:
Jonas Jenwald 2022-10-08 18:06:42 +02:00
parent 3dc9b427b9
commit 484e81ef6e

View File

@ -278,6 +278,8 @@ const CMapCompressionType = {
const OPS = {
// Intentionally start from 1 so it is easy to spot bad operators that will be
// 0's.
// PLEASE NOTE: We purposely keep any removed operators commented out, since
// re-numbering the list would risk breaking third-party users.
dependency: 1,
setLineWidth: 2,
setLineCap: 3,
@ -355,14 +357,11 @@ const OPS = {
paintFormXObjectEnd: 75,
beginGroup: 76,
endGroup: 77,
/** @deprecated unused */
beginAnnotations: 78,
/** @deprecated unused */
endAnnotations: 79,
// beginAnnotations: 78,
// endAnnotations: 79,
beginAnnotation: 80,
endAnnotation: 81,
/** @deprecated unused */
paintJpegXObject: 82,
// paintJpegXObject: 82,
paintImageMaskXObject: 83,
paintImageMaskXObjectGroup: 84,
paintImageXObject: 85,
@ -375,15 +374,11 @@ const OPS = {
};
const UNSUPPORTED_FEATURES = {
/** @deprecated unused */
unknown: "unknown",
forms: "forms",
javaScript: "javaScript",
signatures: "signatures",
smask: "smask",
shadingPattern: "shadingPattern",
/** @deprecated unused */
font: "font",
errorTilingPattern: "errorTilingPattern",
errorExtGState: "errorExtGState",
errorXObject: "errorXObject",