Remove a few useless assignments.
This commit is contained in:
parent
bc8f673522
commit
3ae37d1b06
@ -588,7 +588,7 @@ var BinaryCMapReader = (function BinaryCMapReaderClosure() {
|
||||
stream.readHex(start, dataSize);
|
||||
stream.readHexNumber(end, dataSize);
|
||||
addHex(end, start, dataSize);
|
||||
code = stream.readNumber();
|
||||
stream.readNumber(); // code
|
||||
// undefined range, skipping
|
||||
for (i = 1; i < subitemsCount; i++) {
|
||||
incHex(end, dataSize);
|
||||
@ -596,7 +596,7 @@ var BinaryCMapReader = (function BinaryCMapReaderClosure() {
|
||||
addHex(start, end, dataSize);
|
||||
stream.readHexNumber(end, dataSize);
|
||||
addHex(end, start, dataSize);
|
||||
code = stream.readNumber();
|
||||
stream.readNumber(); // code
|
||||
// nop
|
||||
}
|
||||
break;
|
||||
|
@ -2447,7 +2447,6 @@ var Font = (function FontClosure() {
|
||||
}
|
||||
if (glyphId > 0 && hasGlyph(glyphId)) {
|
||||
charCodeToGlyphId[charCode] = glyphId;
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3084,7 +3083,6 @@ var Type1Font = (function Type1FontClosure() {
|
||||
|
||||
// Get the data block containing glyphs and subrs information
|
||||
var headerBlock = getHeaderBlock(file, headerBlockLength);
|
||||
headerBlockLength = headerBlock.length;
|
||||
var headerBlockParser = new Type1Parser(headerBlock.stream, false,
|
||||
SEAC_ANALYSIS_ENABLED);
|
||||
headerBlockParser.extractFontHeader(properties);
|
||||
@ -3097,7 +3095,6 @@ var Type1Font = (function Type1FontClosure() {
|
||||
|
||||
// Decrypt the data blocks and retrieve it's content
|
||||
var eexecBlock = getEexecBlock(file, eexecBlockLength);
|
||||
eexecBlockLength = eexecBlock.length;
|
||||
var eexecBlockParser = new Type1Parser(eexecBlock.stream, true,
|
||||
SEAC_ANALYSIS_ENABLED);
|
||||
var data = eexecBlockParser.extractFontProgram();
|
||||
|
@ -578,7 +578,7 @@ var Type1Parser = (function Type1ParserClosure() {
|
||||
case 'Subrs':
|
||||
this.readInt(); // num
|
||||
this.getToken(); // read in 'array'
|
||||
while ((token = this.getToken()) === 'dup') {
|
||||
while (this.getToken() === 'dup') {
|
||||
var index = this.readInt();
|
||||
length = this.readInt();
|
||||
this.getToken(); // read in 'RD' or '-|'
|
||||
|
Loading…
Reference in New Issue
Block a user