Merge pull request #7316 from timvandermeij/remove-unused
Remove unused variables
This commit is contained in:
commit
db46829ef7
1
make.js
1
make.js
@ -27,7 +27,6 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var builder = require('./external/builder/builder.js');
|
var builder = require('./external/builder/builder.js');
|
||||||
var path = require('path');
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var CONFIG_FILE = 'pdfjs.config';
|
var CONFIG_FILE = 'pdfjs.config';
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
/* globals NetworkManager */
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -31,7 +31,6 @@ var Util = sharedUtil.Util;
|
|||||||
var createPromiseCapability = sharedUtil.createPromiseCapability;
|
var createPromiseCapability = sharedUtil.createPromiseCapability;
|
||||||
var CustomStyle = displayDOMUtils.CustomStyle;
|
var CustomStyle = displayDOMUtils.CustomStyle;
|
||||||
var getDefaultSetting = displayDOMUtils.getDefaultSetting;
|
var getDefaultSetting = displayDOMUtils.getDefaultSetting;
|
||||||
var PageViewport = sharedUtil.PageViewport;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Text layer render parameters.
|
* Text layer render parameters.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* globals PDFJS, expect, it, describe, Promise, beforeAll,
|
/* globals PDFJS, expect, it, describe, Promise, beforeAll,
|
||||||
InvalidPDFException, MissingPDFException, StreamType, FontType,
|
InvalidPDFException, MissingPDFException, StreamType, FontType,
|
||||||
PDFDocumentProxy, PasswordException, PasswordResponses, afterAll,
|
PDFDocumentProxy, PasswordException, PasswordResponses, afterAll,
|
||||||
PDFPageProxy, createPromiseCapability, beforeEach, afterEach */
|
PDFPageProxy, createPromiseCapability, afterEach */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -857,7 +857,6 @@ var PDFViewerApplication = {
|
|||||||
pdfViewer.setDocument(pdfDocument);
|
pdfViewer.setDocument(pdfDocument);
|
||||||
var firstPagePromise = pdfViewer.firstPagePromise;
|
var firstPagePromise = pdfViewer.firstPagePromise;
|
||||||
var pagesPromise = pdfViewer.pagesPromise;
|
var pagesPromise = pdfViewer.pagesPromise;
|
||||||
var onePageRendered = pdfViewer.onePageRendered;
|
|
||||||
|
|
||||||
this.pageRotation = 0;
|
this.pageRotation = 0;
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
} else {
|
} else {
|
||||||
factory((root.pdfjsWebPDFFindController = {}), root.pdfjsWebUIUtils);
|
factory((root.pdfjsWebPDFFindController = {}), root.pdfjsWebUIUtils);
|
||||||
}
|
}
|
||||||
}(this, function (exports, uiUtils, firefoxCom) {
|
}(this, function (exports, uiUtils) {
|
||||||
|
|
||||||
var scrollIntoView = uiUtils.scrollIntoView;
|
var scrollIntoView = uiUtils.scrollIntoView;
|
||||||
|
|
||||||
@ -322,10 +322,9 @@ var PDFFindController = (function PDFFindControllerClosure() {
|
|||||||
* @param {number} index - match index.
|
* @param {number} index - match index.
|
||||||
* @param {Array} elements - text layer div elements array.
|
* @param {Array} elements - text layer div elements array.
|
||||||
* @param {number} beginIdx - start index of the div array for the match.
|
* @param {number} beginIdx - start index of the div array for the match.
|
||||||
* @param {number} endIdx - end index of the div array for the match.
|
|
||||||
*/
|
*/
|
||||||
updateMatchPosition: function PDFFindController_updateMatchPosition(
|
updateMatchPosition: function PDFFindController_updateMatchPosition(
|
||||||
pageIndex, index, elements, beginIdx, endIdx) {
|
pageIndex, index, elements, beginIdx) {
|
||||||
if (this.selected.matchIdx === index &&
|
if (this.selected.matchIdx === index &&
|
||||||
this.selected.pageIdx === pageIndex) {
|
this.selected.pageIdx === pageIndex) {
|
||||||
var spot = {
|
var spot = {
|
||||||
|
@ -187,7 +187,6 @@ var PDFPageView = (function PDFPageViewClosure() {
|
|||||||
var isScalingRestricted = false;
|
var isScalingRestricted = false;
|
||||||
if (this.canvas && pdfjsLib.PDFJS.maxCanvasPixels > 0) {
|
if (this.canvas && pdfjsLib.PDFJS.maxCanvasPixels > 0) {
|
||||||
var outputScale = this.outputScale;
|
var outputScale = this.outputScale;
|
||||||
var pixelsInViewport = this.viewport.width * this.viewport.height;
|
|
||||||
if (((Math.floor(this.viewport.width) * outputScale.sx) | 0) *
|
if (((Math.floor(this.viewport.width) * outputScale.sx) | 0) *
|
||||||
((Math.floor(this.viewport.height) * outputScale.sy) | 0) >
|
((Math.floor(this.viewport.height) * outputScale.sy) | 0) >
|
||||||
pdfjsLib.PDFJS.maxCanvasPixels) {
|
pdfjsLib.PDFJS.maxCanvasPixels) {
|
||||||
|
@ -225,7 +225,7 @@ var TextLayerBuilder = (function TextLayerBuilderClosure() {
|
|||||||
|
|
||||||
if (this.findController) {
|
if (this.findController) {
|
||||||
this.findController.updateMatchPosition(pageIdx, i, textDivs,
|
this.findController.updateMatchPosition(pageIdx, i, textDivs,
|
||||||
begin.divIdx, end.divIdx);
|
begin.divIdx);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Match inside new div.
|
// Match inside new div.
|
||||||
|
Loading…
Reference in New Issue
Block a user