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:
Tim van der Meij 2017-09-23 16:09:17 +02:00 committed by GitHub
commit 40b89e9ba4

View File

@ -201,10 +201,7 @@ var ColorSpace = (function ColorSpaceClosure() {
}; };
ColorSpace.parse = function ColorSpace_parse(cs, xref, res) { ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
var IR = ColorSpace.parseToIR(cs, xref, res); let IR = ColorSpace.parseToIR(cs, xref, res);
if (IR instanceof AlternateCS) {
return IR;
}
return ColorSpace.fromIR(IR); return ColorSpace.fromIR(IR);
}; };