From bf4465782570653871450689201ddeeac69e584f Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Fri, 17 Jun 2011 06:06:24 +0200 Subject: [PATCH] Remove some leftovers from the previous patch --- PDFFont.js | 45 --------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/PDFFont.js b/PDFFont.js index 1bf437066..4706121f2 100644 --- a/PDFFont.js +++ b/PDFFont.js @@ -589,8 +589,6 @@ var FontsUtils = { }; -/** Implementation dirty logic starts here */ - /** * The TrueType class verify that the ttf embedded inside the PDF is correct in * the point of view of the OTS sanitizer and rewrite it on the fly otherwise. @@ -852,49 +850,6 @@ TrueType.prototype = { /** * This dictionary holds decoded fonts data. */ -var PSFonts = new Dict(); - -var Stack = function(aStackSize) { - var innerStack = new Array(aStackSize || 0); - - this.push = function(aOperand) { - innerStack.push(aOperand); - }; - - this.pop = function() { - if (!this.count()) - throw new Error("stackunderflow"); - return innerStack.pop(); - }; - - this.peek = function() { - if (!this.count()) - return null; - return innerStack[innerStack.length - 1]; - }; - - this.get = function(aIndex) { - return innerStack[aIndex]; - }; - - this.clear = function() { - innerStack = []; - }; - - this.count = function() { - return innerStack.length; - }; - - this.dump = function() { - for (var i = 0; i < this.length; i++) - log(innerStack[i]); - }; - - this.clone = function() { - return innerStack.slice(); - }; -}; - var Type1Parser = function() { // Turn on this flag for additional debugging logs var debug = false;