]> git.parisson.com Git - pdf.js.git/commitdiff
cleanup
authorsbarman <sbarman@L3CWZ5T.(none)>
Mon, 11 Jul 2011 20:14:47 +0000 (13:14 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Mon, 11 Jul 2011 20:14:47 +0000 (13:14 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 982409bc2f6b4a394b140ea8dd08d20b6a09a9e8..d03bc745d870b2179f9c35e394ca33e34c8a1ead 100644 (file)
--- 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: