mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
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
|
@ -237,8 +237,6 @@ var Annotation = (function AnnotationClosure() {
|
|||
var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0];
|
||||
var transform = getTransformMatrix(data.rect, bbox, matrix);
|
||||
|
||||
var border = data.border;
|
||||
|
||||
resourcesPromise.then(function(resources) {
|
||||
var opList = new OperatorList();
|
||||
opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);
|
||||
|
@ -464,7 +462,6 @@ var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
|
|||
}
|
||||
|
||||
|
||||
var parent = WidgetAnnotation.prototype;
|
||||
Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {
|
||||
hasHtml: function TextWidgetAnnotation_hasHtml() {
|
||||
return !this.data.hasAppearance && !!this.data.fieldValue;
|
||||
|
@ -487,7 +484,7 @@ var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
|
|||
|
||||
var fontObj = item.fontRefName ?
|
||||
commonObjs.getData(item.fontRefName) : null;
|
||||
var cssRules = setTextStyles(content, item, fontObj);
|
||||
setTextStyles(content, item, fontObj);
|
||||
|
||||
element.appendChild(content);
|
||||
|
||||
|
@ -519,7 +516,6 @@ var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
|
|||
var appearanceFnArray = opList.fnArray;
|
||||
var appearanceArgsArray = opList.argsArray;
|
||||
var fnArray = [];
|
||||
var argsArray = [];
|
||||
|
||||
// TODO(mack): Add support for stroke color
|
||||
data.rgb = [0, 0, 0];
|
||||
|
@ -735,7 +731,6 @@ var TextAnnotation = (function TextAnnotationClosure() {
|
|||
}
|
||||
};
|
||||
|
||||
var self = this;
|
||||
image.addEventListener('click', function image_clickHandler() {
|
||||
toggleAnnotation();
|
||||
}, false);
|
||||
|
@ -840,7 +835,6 @@ var LinkAnnotation = (function LinkAnnotationClosure() {
|
|||
container.className = 'annotLink';
|
||||
|
||||
var item = this.data;
|
||||
var rect = item.rect;
|
||||
|
||||
container.style.borderColor = item.colorCssRgb;
|
||||
container.style.borderStyle = 'solid';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue