mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Remove unused variables
This commit is contained in:
parent
0a21c8c365
commit
df81b832bb
14 changed files with 17 additions and 29 deletions
|
@ -12,7 +12,6 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFJS */
|
||||
|
||||
'use strict';
|
||||
|
||||
|
@ -46,7 +45,6 @@ var stringToPDFString = sharedUtil.stringToPDFString;
|
|||
var stringToUTF8String = sharedUtil.stringToUTF8String;
|
||||
var warn = sharedUtil.warn;
|
||||
var Dict = corePrimitives.Dict;
|
||||
var Name = corePrimitives.Name;
|
||||
var isDict = corePrimitives.isDict;
|
||||
var isName = corePrimitives.isName;
|
||||
var Stream = coreStream.Stream;
|
||||
|
|
|
@ -987,7 +987,7 @@ var PostScriptCompiler = (function PostScriptCompilerClosure() {
|
|||
var instructions = [];
|
||||
var inputSize = domain.length >> 1, outputSize = range.length >> 1;
|
||||
var lastRegister = 0;
|
||||
var n, j, min, max;
|
||||
var n, j;
|
||||
var num1, num2, ast1, ast2, tmpVar, item;
|
||||
for (i = 0; i < inputSize; i++) {
|
||||
stack.push(new AstArgument(i, domain[i * 2], domain[i * 2 + 1]));
|
||||
|
|
|
@ -889,7 +889,7 @@ var Jbig2Image = (function Jbig2ImageClosure() {
|
|||
delete pageInfo.height;
|
||||
}
|
||||
var pageSegmentFlags = data[position + 16];
|
||||
var pageStripingInformatiom = readUint16(data, position + 17);
|
||||
var pageStripingInformation = readUint16(data, position + 17);
|
||||
pageInfo.lossless = !!(pageSegmentFlags & 1);
|
||||
pageInfo.refinement = !!(pageSegmentFlags & 2);
|
||||
pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1;
|
||||
|
|
|
@ -109,12 +109,8 @@ var JpegImage = (function jpegImage() {
|
|||
|
||||
function decodeScan(data, offset, frame, components, resetInterval,
|
||||
spectralStart, spectralEnd, successivePrev, successive) {
|
||||
var precision = frame.precision;
|
||||
var samplesPerLine = frame.samplesPerLine;
|
||||
var scanLines = frame.scanLines;
|
||||
var mcusPerLine = frame.mcusPerLine;
|
||||
var progressive = frame.progressive;
|
||||
var maxH = frame.maxH, maxV = frame.maxV;
|
||||
|
||||
var startOffset = offset, bitsData = 0, bitsCount = 0;
|
||||
|
||||
|
@ -622,10 +618,9 @@ var JpegImage = (function jpegImage() {
|
|||
frame.mcusPerColumn = mcusPerColumn;
|
||||
}
|
||||
|
||||
var offset = 0, length = data.length;
|
||||
var offset = 0;
|
||||
var jfif = null;
|
||||
var adobe = null;
|
||||
var pixels = null;
|
||||
var frame, resetInterval;
|
||||
var quantizationTables = [];
|
||||
var huffmanTablesAC = [], huffmanTablesDC = [];
|
||||
|
|
|
@ -85,8 +85,6 @@ var JpxImage = (function JpxImageClosure() {
|
|||
case 0x636F6C72: // 'colr'
|
||||
// Colorspaces are not used, the CS from the PDF is used.
|
||||
var method = data[position];
|
||||
var precedence = data[position + 1];
|
||||
var approximation = data[position + 2];
|
||||
if (method === 1) {
|
||||
// enumerated colorspace
|
||||
var colorspace = readUint32(data, position + 3);
|
||||
|
|
|
@ -2201,11 +2201,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
return this.cachedGetSinglePixelWidth;
|
||||
},
|
||||
getCanvasPosition: function CanvasGraphics_getCanvasPosition(x, y) {
|
||||
var transform = this.ctx.mozCurrentTransform;
|
||||
return [
|
||||
transform[0] * x + transform[2] * y + transform[4],
|
||||
transform[1] * x + transform[3] * y + transform[5]
|
||||
];
|
||||
var transform = this.ctx.mozCurrentTransform;
|
||||
return [
|
||||
transform[0] * x + transform[2] * y + transform[4],
|
||||
transform[1] * x + transform[3] * y + transform[5]
|
||||
];
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFJS, global */
|
||||
/* globals global */
|
||||
|
||||
'use strict';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue