Merge pull request #8949 from Snuffleupagus/ColorSpace-rm-instanceof-AlternateCS
Remove the `instanceof AlternateCS` check in `ColorSpace.parse` since it's dead code
This commit is contained in:
commit
40b89e9ba4
@ -201,10 +201,7 @@ var ColorSpace = (function ColorSpaceClosure() {
|
||||
};
|
||||
|
||||
ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
|
||||
var IR = ColorSpace.parseToIR(cs, xref, res);
|
||||
if (IR instanceof AlternateCS) {
|
||||
return IR;
|
||||
}
|
||||
let IR = ColorSpace.parseToIR(cs, xref, res);
|
||||
return ColorSpace.fromIR(IR);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user