Remove unused (local) variables in web/
This commit is contained in:
		
							parent
							
								
									b4a81cb472
								
							
						
					
					
						commit
						d7dfa447cd
					
				@ -20,7 +20,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
var FontInspector = (function FontInspectorClosure() {
 | 
					var FontInspector = (function FontInspectorClosure() {
 | 
				
			||||||
  var fonts;
 | 
					  var fonts;
 | 
				
			||||||
  var panelWidth = 300;
 | 
					 | 
				
			||||||
  var active = false;
 | 
					  var active = false;
 | 
				
			||||||
  var fontAttribute = 'data-font-name';
 | 
					  var fontAttribute = 'data-font-name';
 | 
				
			||||||
  function removeSelection() {
 | 
					  function removeSelection() {
 | 
				
			||||||
@ -342,7 +341,6 @@ var Stepper = (function StepperClosure() {
 | 
				
			|||||||
        return;
 | 
					        return;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      var self = this;
 | 
					 | 
				
			||||||
      var chunk = document.createDocumentFragment();
 | 
					      var chunk = document.createDocumentFragment();
 | 
				
			||||||
      var operatorsToDisplay = Math.min(MAX_OPERATORS_COUNT,
 | 
					      var operatorsToDisplay = Math.min(MAX_OPERATORS_COUNT,
 | 
				
			||||||
                                        operatorList.fnArray.length);
 | 
					                                        operatorList.fnArray.length);
 | 
				
			||||||
 | 
				
			|||||||
@ -461,7 +461,6 @@ var PageView = function pageView(container, id, scale,
 | 
				
			|||||||
    div.appendChild(canvasWrapper);
 | 
					    div.appendChild(canvasWrapper);
 | 
				
			||||||
    this.canvas = canvas;
 | 
					    this.canvas = canvas;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var scale = this.scale;
 | 
					 | 
				
			||||||
    var ctx = canvas.getContext('2d');
 | 
					    var ctx = canvas.getContext('2d');
 | 
				
			||||||
    var outputScale = getOutputScale(ctx);
 | 
					    var outputScale = getOutputScale(ctx);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -633,7 +632,6 @@ var PageView = function pageView(container, id, scale,
 | 
				
			|||||||
    canvasWrapper.appendChild(canvas);
 | 
					    canvasWrapper.appendChild(canvas);
 | 
				
			||||||
    printContainer.appendChild(canvasWrapper);
 | 
					    printContainer.appendChild(canvasWrapper);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var self = this;
 | 
					 | 
				
			||||||
    canvas.mozPrintCallback = function(obj) {
 | 
					    canvas.mozPrintCallback = function(obj) {
 | 
				
			||||||
      var ctx = obj.context;
 | 
					      var ctx = obj.context;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -163,9 +163,6 @@ var TextLayerBuilder = function textLayerBuilder(options) {
 | 
				
			|||||||
    var queryLen = (PDFFindController === null ?
 | 
					    var queryLen = (PDFFindController === null ?
 | 
				
			||||||
                    0 : PDFFindController.state.query.length);
 | 
					                    0 : PDFFindController.state.query.length);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var lastDivIdx = -1;
 | 
					 | 
				
			||||||
    var pos;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    var ret = [];
 | 
					    var ret = [];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Loop over all the matches.
 | 
					    // Loop over all the matches.
 | 
				
			||||||
 | 
				
			|||||||
@ -1462,7 +1462,7 @@ var PDFView = {
 | 
				
			|||||||
  parseQueryString: function pdfViewParseQueryString(query) {
 | 
					  parseQueryString: function pdfViewParseQueryString(query) {
 | 
				
			||||||
    var parts = query.split('&');
 | 
					    var parts = query.split('&');
 | 
				
			||||||
    var params = {};
 | 
					    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 param = parts[i].split('=');
 | 
				
			||||||
      var key = param[0];
 | 
					      var key = param[0];
 | 
				
			||||||
      var value = param.length > 1 ? param[1] : null;
 | 
					      var value = param.length > 1 ? param[1] : null;
 | 
				
			||||||
@ -1611,7 +1611,6 @@ var PDFView = {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
var DocumentOutlineView = function documentOutlineView(outline) {
 | 
					var DocumentOutlineView = function documentOutlineView(outline) {
 | 
				
			||||||
  var outlineView = document.getElementById('outlineView');
 | 
					  var outlineView = document.getElementById('outlineView');
 | 
				
			||||||
  var outlineButton = document.getElementById('viewOutline');
 | 
					 | 
				
			||||||
  while (outlineView.firstChild) {
 | 
					  while (outlineView.firstChild) {
 | 
				
			||||||
    outlineView.removeChild(outlineView.firstChild);
 | 
					    outlineView.removeChild(outlineView.firstChild);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user