Skip to content

Commit

Permalink
Refactor/remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbroome committed Oct 31, 2014
1 parent 91b325e commit 3a9afe7
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,6 @@ _.extend(Parser.prototype, {
return this._tokens[this._tokenPointer];
},

peek: function peek() {
return this._tokens[this._tokenPointer + 1];
},

getCurrentPair: function getCurrentPair() {
var
token = this.currentToken(),
peek = this.peek();
return {token: token, peek: peek};
},

getNextPair: function getNextPair() {
this.next();
return this.getCurrentPair();
},

parseTokens: function parseTokens() {
this.treeRoot = this.value();
this.assertEndOfInput();
Expand Down Expand Up @@ -146,7 +130,7 @@ _.extend(Parser.prototype, {
if (!this.assertNotEndOfInput(type)) return null;
if (!this.assertTypeEquals(type)) return null;
var token = this.currentToken();
this.getNextPair();
this.next();
return {type: token.type, value: token.value, originalValue: token.originalValue};
},

Expand Down

0 comments on commit 3a9afe7

Please sign in to comment.