Cleanup: Remove unused variable (#6581)
Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com>
This commit is contained in:
parent
7c7746257c
commit
2064abab40
|
@ -29,9 +29,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type parser struct {
|
type parser struct {
|
||||||
lex *Lexer
|
lex *Lexer
|
||||||
token Item
|
token Item
|
||||||
peeking bool
|
|
||||||
|
|
||||||
inject Item
|
inject Item
|
||||||
injecting bool
|
injecting bool
|
||||||
|
@ -134,16 +133,12 @@ func (p *parser) typecheck(node Node) (err error) {
|
||||||
|
|
||||||
// next returns the next token.
|
// next returns the next token.
|
||||||
func (p *parser) next() Item {
|
func (p *parser) next() Item {
|
||||||
if !p.peeking {
|
t := p.lex.NextItem()
|
||||||
t := p.lex.NextItem()
|
// Skip comments.
|
||||||
// Skip comments.
|
for t.Typ == COMMENT {
|
||||||
for t.Typ == COMMENT {
|
t = p.lex.NextItem()
|
||||||
t = p.lex.NextItem()
|
|
||||||
}
|
|
||||||
p.token = t
|
|
||||||
}
|
}
|
||||||
|
p.token = t
|
||||||
p.peeking = false
|
|
||||||
|
|
||||||
if p.token.Typ == ERROR {
|
if p.token.Typ == ERROR {
|
||||||
p.errorf("%s", p.token.Val)
|
p.errorf("%s", p.token.Val)
|
||||||
|
|
Loading…
Reference in New Issue