Remove some unused variables from src/
Only obviously useless, local variables have been removed.
This commit is contained in:
parent
d7dfa447cd
commit
2e97c0d085
17 changed files with 9 additions and 111 deletions
|
@ -462,7 +462,6 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
// imgData.kind tells us which one this is.
|
||||
if (imgData.kind === ImageKind.GRAYSCALE_1BPP) {
|
||||
// Grayscale, 1 bit per pixel (i.e. black-and-white).
|
||||
var destDataLength = dest.length;
|
||||
var srcLength = src.byteLength;
|
||||
var dest32 = PDFJS.hasCanvasTypedArrays ? new Uint32Array(dest.buffer) :
|
||||
new Uint32ArrayView(dest);
|
||||
|
@ -733,7 +732,6 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
return i;
|
||||
}
|
||||
|
||||
var executionEndIdx;
|
||||
var endTime = Date.now() + EXECUTION_TIME;
|
||||
|
||||
var commonObjs = this.commonObjs;
|
||||
|
@ -1309,7 +1307,6 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
var vertical = font.vertical;
|
||||
var defaultVMetrics = font.defaultVMetrics;
|
||||
var i, glyph, width;
|
||||
var VERTICAL_TEXT_ROTATION = Math.PI / 2;
|
||||
|
||||
if (fontSize === 0) {
|
||||
return;
|
||||
|
@ -1437,7 +1434,6 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
}
|
||||
},
|
||||
showSpacedText: function CanvasGraphics_showSpacedText(arr) {
|
||||
var ctx = this.ctx;
|
||||
var current = this.current;
|
||||
var font = current.font;
|
||||
var fontSize = current.fontSize;
|
||||
|
@ -1513,8 +1509,6 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||
var base = cs.base;
|
||||
var color;
|
||||
if (base) {
|
||||
var baseComps = base.numComps;
|
||||
|
||||
color = base.getRgb(args, 0);
|
||||
}
|
||||
pattern = new TilingPattern(IR, color, this.ctx, this.objs,
|
||||
|
|
|
@ -215,13 +215,13 @@ var createMeshCanvas = (function createMeshCanvasClosure() {
|
|||
|
||||
ShadingIRs.Mesh = {
|
||||
fromIR: function Mesh_fromIR(raw) {
|
||||
var type = raw[1];
|
||||
//var type = raw[1];
|
||||
var coords = raw[2];
|
||||
var colors = raw[3];
|
||||
var figures = raw[4];
|
||||
var bounds = raw[5];
|
||||
var matrix = raw[6];
|
||||
var bbox = raw[7];
|
||||
//var bbox = raw[7];
|
||||
var background = raw[8];
|
||||
return {
|
||||
type: 'Pattern',
|
||||
|
@ -318,7 +318,6 @@ var TilingPattern = (function TilingPatternClosure() {
|
|||
var color = this.color;
|
||||
var objs = this.objs;
|
||||
var commonObjs = this.commonObjs;
|
||||
var ctx = this.ctx;
|
||||
|
||||
info('TilingType: ' + tilingType);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue