Remove unused (local) variables in web/

This commit is contained in:
Rob Wu 2014-04-11 21:43:07 +02:00 committed by Rob Wu
parent b4a81cb472
commit d7dfa447cd
4 changed files with 1 additions and 9 deletions

View File

@ -20,7 +20,6 @@
var FontInspector = (function FontInspectorClosure() {
var fonts;
var panelWidth = 300;
var active = false;
var fontAttribute = 'data-font-name';
function removeSelection() {
@ -342,7 +341,6 @@ var Stepper = (function StepperClosure() {
return;
}
var self = this;
var chunk = document.createDocumentFragment();
var operatorsToDisplay = Math.min(MAX_OPERATORS_COUNT,
operatorList.fnArray.length);

View File

@ -461,7 +461,6 @@ var PageView = function pageView(container, id, scale,
div.appendChild(canvasWrapper);
this.canvas = canvas;
var scale = this.scale;
var ctx = canvas.getContext('2d');
var outputScale = getOutputScale(ctx);
@ -633,7 +632,6 @@ var PageView = function pageView(container, id, scale,
canvasWrapper.appendChild(canvas);
printContainer.appendChild(canvasWrapper);
var self = this;
canvas.mozPrintCallback = function(obj) {
var ctx = obj.context;

View File

@ -163,9 +163,6 @@ var TextLayerBuilder = function textLayerBuilder(options) {
var queryLen = (PDFFindController === null ?
0 : PDFFindController.state.query.length);
var lastDivIdx = -1;
var pos;
var ret = [];
// Loop over all the matches.

View File

@ -1462,7 +1462,7 @@ var PDFView = {
parseQueryString: function pdfViewParseQueryString(query) {
var parts = query.split('&');
var params = {};
for (var i = 0, ii = parts.length; i < parts.length; ++i) {
for (var i = 0, ii = parts.length; i < ii; ++i) {
var param = parts[i].split('=');
var key = param[0];
var value = param.length > 1 ? param[1] : null;
@ -1611,7 +1611,6 @@ var PDFView = {
var DocumentOutlineView = function documentOutlineView(outline) {
var outlineView = document.getElementById('outlineView');
var outlineButton = document.getElementById('viewOutline');
while (outlineView.firstChild) {
outlineView.removeChild(outlineView.firstChild);
}