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.
This commit is contained in:
Jonas Jenwald 2022-10-08 17:10:05 +02:00
parent 3dc9b427b9
commit 4cc98de6d7
2 changed files with 1 additions and 4 deletions

View File

@ -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 {

View File

@ -271,7 +271,6 @@ const VerbosityLevel = {
const CMapCompressionType = {
NONE: 0,
BINARY: 1,
STREAM: 2,
};
// All the possible operations for an operator list.