mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-06 00:31:10 +01:00
Remove unused functions
This commit is contained in:
parent
50753bb808
commit
09d352ac13
@ -187,7 +187,6 @@ private:
|
|||||||
|
|
||||||
typedef std::deque<ErrorInfo> Errors;
|
typedef std::deque<ErrorInfo> Errors;
|
||||||
|
|
||||||
bool expectToken(TokenType type, Token& token, const char* message);
|
|
||||||
bool readToken(Token& token);
|
bool readToken(Token& token);
|
||||||
void skipSpaces();
|
void skipSpaces();
|
||||||
bool match(Location pattern, int patternLength);
|
bool match(Location pattern, int patternLength);
|
||||||
|
@ -47,23 +47,6 @@ Features Features::strictMode() {
|
|||||||
// Implementation of class Reader
|
// Implementation of class Reader
|
||||||
// ////////////////////////////////
|
// ////////////////////////////////
|
||||||
|
|
||||||
static inline bool in(Reader::Char c,
|
|
||||||
Reader::Char c1,
|
|
||||||
Reader::Char c2,
|
|
||||||
Reader::Char c3,
|
|
||||||
Reader::Char c4) {
|
|
||||||
return c == c1 || c == c2 || c == c3 || c == c4;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline bool in(Reader::Char c,
|
|
||||||
Reader::Char c1,
|
|
||||||
Reader::Char c2,
|
|
||||||
Reader::Char c3,
|
|
||||||
Reader::Char c4,
|
|
||||||
Reader::Char c5) {
|
|
||||||
return c == c1 || c == c2 || c == c3 || c == c4 || c == c5;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool containsNewLine(Reader::Location begin, Reader::Location end) {
|
static bool containsNewLine(Reader::Location begin, Reader::Location end) {
|
||||||
for (; begin < end; ++begin)
|
for (; begin < end; ++begin)
|
||||||
if (*begin == '\n' || *begin == '\r')
|
if (*begin == '\n' || *begin == '\r')
|
||||||
@ -229,13 +212,6 @@ void Reader::skipCommentTokens(Token& token) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Reader::expectToken(TokenType type, Token& token, const char* message) {
|
|
||||||
readToken(token);
|
|
||||||
if (token.type_ != type)
|
|
||||||
return addError(message, token);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Reader::readToken(Token& token) {
|
bool Reader::readToken(Token& token) {
|
||||||
skipSpaces();
|
skipSpaces();
|
||||||
token.start_ = current_;
|
token.start_ = current_;
|
||||||
|
Loading…
Reference in New Issue
Block a user