Skip to content

Commit

Permalink
Remove remaining()
Browse files Browse the repository at this point in the history
This reverts commit 81a0ac8.
  • Loading branch information
tjvr committed Apr 5, 2017
1 parent 81a0ac8 commit c11ad1c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions moo.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,6 @@
}
}

Lexer.prototype.remaining = function() {
return this.buffer.slice(this.index)
}

Lexer.prototype.clone = function() {
return new Lexer(this.states, this.state)
}
Expand Down
10 changes: 0 additions & 10 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,16 +251,6 @@ describe('lexer', () => {
expect(clone.next()).toMatchObject({value: '2'})
})

test('remaining', () => {
simpleLexer.reset('lik bred')
simpleLexer.next()
expect(simpleLexer.remaining()).toBe(' bred')
simpleLexer.next()
expect(simpleLexer.remaining()).toBe('bred')
simpleLexer.next()
expect(simpleLexer.remaining()).toBe('')
})

})


Expand Down

0 comments on commit c11ad1c

Please sign in to comment.