From 4cc98de6d72e28145e4c6c681a0631f568798c05 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 8 Oct 2022 17:10:05 +0200 Subject: [PATCH] Remove the unused `CMapCompressionType.STREAM` value This was added in PR 8064, over five years ago, for a possible future CMap file-format that was never implemented. --- src/core/cmap.js | 4 +--- src/shared/util.js | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/cmap.js b/src/core/cmap.js index 9c766c290..5cde7d29f 100644 --- a/src/core/cmap.js +++ b/src/core/cmap.js @@ -1012,9 +1012,7 @@ const CMapFactory = (function CMapFactoryClosure() { const lexer = new Lexer(new Stream(cMapData)); return parseCMap(cMap, lexer, fetchBuiltInCMap, null); } - throw new Error( - "TODO: Only BINARY/NONE CMap compression is currently supported." - ); + throw new Error(`Invalid CMap "compressionType" value: ${compressionType}`); } return { diff --git a/src/shared/util.js b/src/shared/util.js index 80637bf6e..ec5a07f25 100644 --- a/src/shared/util.js +++ b/src/shared/util.js @@ -271,7 +271,6 @@ const VerbosityLevel = { const CMapCompressionType = { NONE: 0, BINARY: 1, - STREAM: 2, }; // All the possible operations for an operator list.