diff options
Diffstat (limited to 'parser/pageparser/pagelexer.go')
-rw-r--r-- | parser/pageparser/pagelexer.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/parser/pageparser/pagelexer.go b/parser/pageparser/pagelexer.go index 3bdfb6c33..c15e977ca 100644 --- a/parser/pageparser/pagelexer.go +++ b/parser/pageparser/pagelexer.go @@ -60,17 +60,6 @@ type pageLexer struct { items []Item } -func Parse(s string) *Tokens { - return ParseFrom(s, 0) -} - -func ParseFrom(s string, from int) *Tokens { - input := []byte(s) - lexer := newPageLexer(input, pos(from), lexMainSection) // TODO(bep) 2errors - lexer.run() - return &Tokens{lexer: lexer} -} - // note: the input position here is normally 0 (start), but // can be set if position of first shortcode is known // TODO(bep) 2errors byte |