From 7c7746257c50bdd6cfc408e58b833278b60228ee Mon Sep 17 00:00:00 2001 From: Tobias Guggenmos Date: Wed, 8 Jan 2020 15:58:21 +0100 Subject: [PATCH] Cleanup: remove function that does not do anything (#6580) Signed-off-by: Tobias Guggenmos --- promql/lex.go | 7 ------- promql/parse.go | 1 - 2 files changed, 8 deletions(-) diff --git a/promql/lex.go b/promql/lex.go index 888ca512e7..eb249fc704 100644 --- a/promql/lex.go +++ b/promql/lex.go @@ -343,13 +343,6 @@ func (l *Lexer) run() { } } -// Release resources used by lexer. -func (l *Lexer) close() { - for range l.Items { - // Consume. - } -} - // lineComment is the character that starts a line comment. const lineComment = "#" diff --git a/promql/parse.go b/promql/parse.go index 6b414b6983..e325f13dc5 100644 --- a/promql/parse.go +++ b/promql/parse.go @@ -206,7 +206,6 @@ func (p *parser) recover(errp *error) { } else if e != nil { *errp = e.(error) } - p.lex.close() } // Lex is expected by the yyLexer interface of the yacc generated parser.