From 8df721df25864f89772c58a4486314855bf1a37e Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 28 Oct 2022 04:00:00 +0200 Subject: Fix some compiler warnings & buffer overflows --- src/syntax/Parser.cxx | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/syntax') diff --git a/src/syntax/Parser.cxx b/src/syntax/Parser.cxx index ada3963b..be73b088 100644 --- a/src/syntax/Parser.cxx +++ b/src/syntax/Parser.cxx @@ -72,24 +72,6 @@ namespace { TokenSequence::size_type position; }; - const Token* next_token(ParsingContext& ctx) { - while (auto t = ctx.current_token()) { - switch (t->category) { - case TokenCategory::Whitespace: - break; - - case TokenCategory::Comment: - if (t->value == TokenValue::Wisecrack) - break; - - default: - return t; - } - ctx.advance(); - } - return nullptr; - } - // Simple wrapper around standard file streams, along with the pathname // to the file. template -- cgit v1.2.3