From: Andreas Gal Date: Tue, 10 May 2011 06:10:40 +0000 (-0700) Subject: remove putBack and make skip go via skipChar X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=056a81ee89e91f33e6e85bfe639910a243f8f993;p=pdf.js.git remove putBack and make skip go via skipChar --- diff --git a/pdf.js b/pdf.js index 8092e79..1c03d26 100644 --- a/pdf.js +++ b/pdf.js @@ -39,14 +39,12 @@ var Stream = (function() { this.pos++; return ch; }, - putBack: function() { - this.pos--; - }, skipChar: function() { this.pos++; }, skip: function(n) { - this.pos += n; + while (n-- > 0) + this.skipChar(); }, moveStart: function() { this.start = this.pos;