diff --git a/moo.js b/moo.js index c927495..5861cc3 100644 --- a/moo.js +++ b/moo.js @@ -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) } diff --git a/test/test.js b/test/test.js index eb77b74..3e373f4 100644 --- a/test/test.js +++ b/test/test.js @@ -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('') - }) - })