mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-05-31 07:11:00 +02:00
Remove the unused raw field from the CFFCharset class
This was necessary before charset compilation was implemented, however that's been supported for many years and this is just dead code now. - PR 9340, back in 2018, stopped using the `raw` field. - PR 10591, back in 2019, implemented proper charset compilation.
This commit is contained in:
parent
f54f4b606d
commit
53fd89682c
@ -826,8 +826,7 @@ class CFFParser {
|
||||
);
|
||||
}
|
||||
|
||||
const bytes = this.bytes;
|
||||
const start = pos;
|
||||
const { bytes } = this;
|
||||
const format = bytes[pos++];
|
||||
const charset = [cid ? 0 : ".notdef"];
|
||||
let id, count, i;
|
||||
@ -863,11 +862,8 @@ class CFFParser {
|
||||
default:
|
||||
throw new FormatError("Unknown charset format");
|
||||
}
|
||||
// Raw won't be needed if we actually compile the charset.
|
||||
const end = pos;
|
||||
const raw = bytes.subarray(start, end);
|
||||
|
||||
return new CFFCharset(false, format, charset, raw);
|
||||
return new CFFCharset(false, format, charset);
|
||||
}
|
||||
|
||||
parseEncoding(pos, properties, strings, charset) {
|
||||
@ -1284,11 +1280,10 @@ const CFFCharsetPredefinedTypes = {
|
||||
};
|
||||
|
||||
class CFFCharset {
|
||||
constructor(predefined, format, charset, raw) {
|
||||
constructor(predefined, format, charset) {
|
||||
this.predefined = predefined;
|
||||
this.format = format;
|
||||
this.charset = charset;
|
||||
this.raw = raw;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user