From: sbarman Date: Mon, 11 Jul 2011 20:14:47 +0000 (-0700) Subject: cleanup X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e95512e7cfb06be55f07932d564a82de18694800;p=pdf.js.git cleanup --- diff --git a/pdf.js b/pdf.js index 982409b..d03bc74 100644 --- a/pdf.js +++ b/pdf.js @@ -4176,9 +4176,6 @@ var CanvasGraphics = (function() { if (base) { var baseComps = base.numComps; - if (baseComps != length - 1) - error("invalid base color for pattern colorspace"); - var color = []; for (var i = 0; i < baseComps; ++i) color.push(args[i]); @@ -4263,7 +4260,6 @@ var CanvasGraphics = (function() { var savedCtx = ctx; this.ctx = tmpCtx; - var fillColor, strokeColor; var paintType = dict.get('PaintType'); switch (paintType) { case PAINT_TYPE_COLORED: