From ed5efdb0d6fab0cdcb9e748e0be0da737e7a5fd2 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 1 Jul 2022 11:36:11 +0200 Subject: [PATCH] Util: Remove unused function --- src/util/json/lexer.cpp | 10 ---------- src/util/json/lexer.h | 1 - 2 files changed, 11 deletions(-) diff --git a/src/util/json/lexer.cpp b/src/util/json/lexer.cpp index 627739b..703da2f 100644 --- a/src/util/json/lexer.cpp +++ b/src/util/json/lexer.cpp @@ -154,16 +154,6 @@ char Lexer::consume() return character; } -bool Lexer::consumeSpecific(char character) -{ - if (peek() != character) { - return false; - } - - increment(); - return true; -} - bool Lexer::getString() { size_t column = m_column; diff --git a/src/util/json/lexer.h b/src/util/json/lexer.h index 23d4dac..07de395 100644 --- a/src/util/json/lexer.h +++ b/src/util/json/lexer.h @@ -54,7 +54,6 @@ private: void increment(); void decrement(); char consume(); - bool consumeSpecific(char character); bool getString(); bool getNumberOrLiteral(Token::Type type);