Removing some console.log statements.

This commit is contained in:
Julian Viereck 2011-09-08 19:28:15 -07:00
parent c370b8a428
commit cda4c04312
3 changed files with 1 additions and 20 deletions

2
pdf.js
View File

@ -3461,7 +3461,6 @@ var Page = (function() {
var IRQueue = this.IRQueue;
function next() {
console.log("next executeIRQueue", startIdx, length);
startIdx = gfx.executeIRQueue(IRQueue, startIdx, next);
}
next();
@ -4903,7 +4902,6 @@ var CanvasGraphics = (function() {
// If the promise isn't resolved yet, add the continueCallback
// to the promise and bail out.
if (!promise.isResolved) {
console.log("Unresolved object: " + depObjId);
promise.then(continueCallback);
return i;
}

View File

@ -160,7 +160,6 @@ var WorkerPDFDoc = (function() {
}
var timeStart = new Date();
console.log("startRenderingFromPreCompilation:", "numberOfFonts", fonts.length);
page.startRenderingFromIRQueue(data.IRQueue, data.fonts, data.images);
console.log("RenderingTime", (new Date()) - timeStart);
}, this);

View File

@ -9,12 +9,10 @@ var WorkerHandler = {
handler.on("doc", function(data) {
pdfDoc = new PDFDoc(new Stream(data));
console.log("setup pdfDoc");
});
handler.on("page_request", function(pageNum) {
pageNum = parseInt(pageNum);
console.log("about to process page", pageNum);
var page = pdfDoc.getPage(pageNum);
@ -40,11 +38,7 @@ var WorkerHandler = {
});
}
// TODO: Handle images here.
console.log("about to send page", pageNum);
if (true /* show used commands */) {
if (false /* show used commands */) {
var cmdMap = {};
var fnArray = IRQueue .fnArray;
@ -59,16 +53,6 @@ var WorkerHandler = {
cmdMap[entry] += 1;
}
}
// // Make a copy of the fnArray and show all cmds it has.
// var fnArray = preCompilation.fnArray.slice(0).sort();
// for (var i = 0; i < fnArray.length; true) {
// if (fnArray[i] == fnArray[i + 1]) {
// fnArray.splice(i, 1);
// } else {
// i++;
// }
// }
console.log("cmds", JSON.stringify(cmdMap));
}