mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 17:18:07 +02:00
remove putBack and make skip go via skipChar
This commit is contained in:
parent
ac17a847d0
commit
056a81ee89
1 changed files with 2 additions and 4 deletions
6
pdf.js
6
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue