[Pkg-javascript-commits] [pdf.js] 08/56: Remove unused (local) variables in web/
David Prévot
taffit at moszumanska.debian.org
Thu May 15 15:17:43 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit d7dfa447cd696843ff178a6b85e588a8fe4633b0
Author: Rob Wu <gwnRob at gmail.com>
Date: Fri Apr 11 21:43:07 2014 +0200
Remove unused (local) variables in web/
---
web/debugger.js | 2 --
web/page_view.js | 2 --
web/text_layer_builder.js | 3 ---
web/viewer.js | 3 +--
4 files changed, 1 insertion(+), 9 deletions(-)
diff --git a/web/debugger.js b/web/debugger.js
index ee217b9..4f85ccb 100644
--- a/web/debugger.js
+++ b/web/debugger.js
@@ -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);
diff --git a/web/page_view.js b/web/page_view.js
index 07149ad..d20113e 100644
--- a/web/page_view.js
+++ b/web/page_view.js
@@ -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;
diff --git a/web/text_layer_builder.js b/web/text_layer_builder.js
index 19acbc0..5bc618e 100644
--- a/web/text_layer_builder.js
+++ b/web/text_layer_builder.js
@@ -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.
diff --git a/web/viewer.js b/web/viewer.js
index 8eb20fe..fdd52bd 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -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);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list