]> 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 (13:40 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Wed, 8 Jun 2011 20:40:10 +0000 (13:40 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index c771999d278e576254adb86368d86e5857fb3904..8f0b09e3506f994430fa19d324c26846c26b31d1 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -1537,7 +1537,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.
@@ -2033,23 +2033,3 @@ var CanvasGraphics = (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();
-    }
-}