From: Andreas Gal Date: Wed, 8 Jun 2011 20:40:10 +0000 (+0800) Subject: remove left-over shell code X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=287e7a702afc7e7d86ef99af1ce60ff2221eba17;p=pdf.js.git remove left-over shell code --- diff --git a/pdf.js b/pdf.js index a7da657..d8c5170 100644 --- 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 ]; // 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(); - } -}