From 15fa3f8518a1e400370d04604a5bc08198284293 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 15 Jul 2020 12:30:30 +0200 Subject: [PATCH] Remove a redundant `/XObject` stream dictionary `objId` check in `PartialEvaluator.hasBlendModes` (PR 6971 follow-up) This case should no longer happen, given the `instanceof Ref` branch just above (added in PR 6971). Also, I've run the entire test-suite locally with `continue` replaced by `throw new Error(...)` and didn't find any problems. --- src/core/evaluator.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/evaluator.js b/src/core/evaluator.js index 6951e954e..aacfeed57 100644 --- a/src/core/evaluator.js +++ b/src/core/evaluator.js @@ -328,9 +328,6 @@ class PartialEvaluator { continue; } if (xObject.dict.objId) { - if (processed[xObject.dict.objId]) { - continue; // Stream has objId and was processed already. - } processed[xObject.dict.objId] = true; } var xResources = xObject.dict.get("Resources");