Skip to content

Commit 09d352a

Browse files
author
datadiode
committed
Remove unused functions
1 parent 50753bb commit 09d352a

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

include/json/reader.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ class JSON_API Reader {
187187

188188
typedef std::deque<ErrorInfo> Errors;
189189

190-
bool expectToken(TokenType type, Token& token, const char* message);
191190
bool readToken(Token& token);
192191
void skipSpaces();
193192
bool match(Location pattern, int patternLength);

src/lib_json/json_reader.cpp

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,6 @@ Features Features::strictMode() {
4747
// Implementation of class Reader
4848
// ////////////////////////////////
4949

50-
static inline bool in(Reader::Char c,
51-
Reader::Char c1,
52-
Reader::Char c2,
53-
Reader::Char c3,
54-
Reader::Char c4) {
55-
return c == c1 || c == c2 || c == c3 || c == c4;
56-
}
57-
58-
static inline bool in(Reader::Char c,
59-
Reader::Char c1,
60-
Reader::Char c2,
61-
Reader::Char c3,
62-
Reader::Char c4,
63-
Reader::Char c5) {
64-
return c == c1 || c == c2 || c == c3 || c == c4 || c == c5;
65-
}
66-
6750
static bool containsNewLine(Reader::Location begin, Reader::Location end) {
6851
for (; begin < end; ++begin)
6952
if (*begin == '\n' || *begin == '\r')
@@ -229,13 +212,6 @@ void Reader::skipCommentTokens(Token& token) {
229212
}
230213
}
231214

232-
bool Reader::expectToken(TokenType type, Token& token, const char* message) {
233-
readToken(token);
234-
if (token.type_ != type)
235-
return addError(message, token);
236-
return true;
237-
}
238-
239215
bool Reader::readToken(Token& token) {
240216
skipSpaces();
241217
token.start_ = current_;

0 commit comments

Comments
 (0)