Skip to content

Commit

Permalink
Stop passing in unnecessary parameters when parsing the Alternate e…
Browse files Browse the repository at this point in the history
…ntry of `ICCBased` ColorSpaces (PR 9659 follow-up)

With the changes made in PR 9659, `ColorSpace.fromIR` no longer takes a second ``pdfFunctionFactory` parameter and there's thus one call-site that can be simplified.
  • Loading branch information
Snuffleupagus committed Jun 23, 2020
1 parent 39a1587 commit bf74dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/colorspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class ColorSpace {
);
// Parse the /Alternate CS to ensure that the number of components
// are correct, and also (indirectly) that it is not a PatternCS.
const altCS = this.fromIR(altIR, pdfFunctionFactory);
const altCS = this.fromIR(altIR);
if (altCS.numComps === numComps) {
return altIR;
}
Expand Down

0 comments on commit bf74dc6

Please sign in to comment.