From b8e135293458b02a2bedce45ed3e5e45237208ae Mon Sep 17 00:00:00 2001
From: Jonas Jenwald <jonas.jenwald@gmail.com>
Date: Tue, 23 Jun 2020 22:08:08 +0200
Subject: [PATCH] Stop passing in unnecessary parameters when parsing the
 `Alternate` entry 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.
---
 src/core/colorspace.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/colorspace.js b/src/core/colorspace.js
index b45f74b38..d1597a730 100644
--- a/src/core/colorspace.js
+++ b/src/core/colorspace.js
@@ -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;
             }