]> git.parisson.com Git - pdf.js.git/commitdiff
remove left-over shell code
authorAndreas Gal <andreas.gal@gmail.com>
Wed, 8 Jun 2011 20:40:10 +0000 (04:40 +0800)
committersbarman <sbarman@eecs.berkeley.edu>
Thu, 9 Jun 2011 21:44:41 +0000 (05:44 +0800)
pdf.js

diff --git a/pdf.js b/pdf.js
index a7da657611169fefed3cf9576545520a6a25b6c1..d8c51708bbae0ad4468e1aee9dcbd79114f01a7d 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -1585,7 +1585,7 @@ var PDFDoc = (function() {
     return constructor;
 })();
 
-var IDENTITY_MATRIX = [ 1, 0, 0, 1, 0, 0 ];
+const IDENTITY_MATRIX = [ 1, 0, 0, 1, 0, 0 ];
 
 // <canvas> contexts store most of the state we need natively.
 // However, PDF needs a bit more state, which we store here.
@@ -2230,23 +2230,3 @@ var ColorSpace = (function() {
 
     return constructor;
 })();
-
-function runParseTests() {
-    var data = snarf("paper.pdf", "binary");
-    var pdf = new PDFDoc(new Stream(data));
-    var page = pdf.getPage(1);
-    page.display({
-        beginDrawing: function() {}
-    });
-}
-
-if ("arguments" in this) {
-    const cmds = {
-        "-p": runParseTests
-    }
-    for (n in arguments) {
-        var fn = cmds[arguments[n]];
-        if (fn)
-            fn();
-    }
-}