aboutsummaryrefslogtreecommitdiff
path: root/src/syntax/Parser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax/Parser.cxx')
-rw-r--r--src/syntax/Parser.cxx18
1 files changed, 0 insertions, 18 deletions
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<typename T>