Browse Source

Remove leftover `args[0].code` checks from the `OPS.paintXObject` cases in evaluator.js

From looking at blame, it seems that these checks became obsolete with PR 692 (which landed close to six years ago). Note how, after that PR, there's no longer anything being assigned to the `code` property of an Object.
Jonas Jenwald 8 years ago
parent
commit
4729e96fb7
  1. 7
      src/core/evaluator.js

7
src/core/evaluator.js

@ -915,9 +915,6 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -915,9 +915,6 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
switch (fn | 0) {
case OPS.paintXObject:
if (args[0].code) {
break;
}
// eagerly compile XForm objects
var name = args[0].name;
if (!name) {
@ -1631,10 +1628,6 @@ var PartialEvaluator = (function PartialEvaluatorClosure() { @@ -1631,10 +1628,6 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
break;
case OPS.paintXObject:
flushTextContentItem();
if (args[0].code) {
break;
}
if (!xobjs) {
xobjs = (resources.get('XObject') || Dict.empty);
}

Loading…
Cancel
Save