remove putBack and make skip go via skipChar

This commit is contained in:
Andreas Gal 2011-05-09 23:10:40 -07:00
parent ac17a847d0
commit 056a81ee89

6
pdf.js
View File

@ -39,14 +39,12 @@ var Stream = (function() {
this.pos++; this.pos++;
return ch; return ch;
}, },
putBack: function() {
this.pos--;
},
skipChar: function() { skipChar: function() {
this.pos++; this.pos++;
}, },
skip: function(n) { skip: function(n) {
this.pos += n; while (n-- > 0)
this.skipChar();
}, },
moveStart: function() { moveStart: function() {
this.start = this.pos; this.start = this.pos;