[Pkg-javascript-commits] [pdf.js] 184/246: Remove two instances of leftover console.log debug statements

David Prévot taffit at moszumanska.debian.org
Sun Sep 7 15:36:39 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 06b5d97bc6e7fddfdee41e42ad44a8b197dae641
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Wed Aug 13 12:52:33 2014 +0200

    Remove two instances of leftover console.log debug statements
    
    The `console.log` statement in evaluator_spec.js is obviously not needed. In obj.js it could have been replaced by `info`, but that seemed unnecessary given the already existing `error`.
---
 src/core/obj.js             | 2 --
 test/unit/evaluator_spec.js | 1 -
 2 files changed, 3 deletions(-)

diff --git a/src/core/obj.js b/src/core/obj.js
index 693dd63..f1de50f 100644
--- a/src/core/obj.js
+++ b/src/core/obj.js
@@ -835,8 +835,6 @@ var XRef = (function XRefClosure() {
           // Validate entry obj
           if (!isInt(entry.offset) || !isInt(entry.gen) ||
               !(entry.free || entry.uncompressed)) {
-            console.log(entry.offset, entry.gen, entry.free,
-                        entry.uncompressed);
             error('Invalid entry in XRef subsection: ' + first + ', ' + count);
           }
 
diff --git a/test/unit/evaluator_spec.js b/test/unit/evaluator_spec.js
index 813eed8..e47d723 100644
--- a/test/unit/evaluator_spec.js
+++ b/test/unit/evaluator_spec.js
@@ -165,7 +165,6 @@ describe('evaluator', function() {
                                            new XrefMock(), new HandlerMock(),
                                            'prefix');
       var stream = new StringStream('5 1 d0');
-      console.log('here!');
       runOperatorListCheck(evaluator, stream, new ResourcesMock(),
           function (result) {
         expect(result.argsArray[0][0]).toEqual(5);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list