Nibbler: Remove unused function argument

This commit is contained in:
Wilhelm Schuermann
2015-11-12 13:36:23 +01:00
parent 0961a011f4
commit 96ca7eb5f2
4 changed files with 11 additions and 29 deletions

View File

@@ -66,7 +66,7 @@ json::string::string (const std::string& other)
json::string* json::string::parse (Nibbler& nibbler)
{
std::string value;
if (nibbler.getQuoted ('"', value, false))
if (nibbler.getQuoted ('"', value))
{
json::string* s = new json::string ();
s->_data = value;
@@ -303,7 +303,7 @@ bool json::object::parse_pair (
{
Nibbler n (nibbler);
if (n.getQuoted ('"', name, false))
if (n.getQuoted ('"', name))
{
n.skipWS ();
if (n.skip (':'))

View File

@@ -180,10 +180,7 @@ bool Nibbler::getN (const int quantity, std::string& result)
}
////////////////////////////////////////////////////////////////////////////////
bool Nibbler::getQuoted (
char c,
std::string& result,
bool quote /* = false */)
bool Nibbler::getQuoted (char c, std::string& result)
{
bool inquote = false;
bool inescape = false;
@@ -210,9 +207,6 @@ bool Nibbler::getQuoted (
if (current == c && !inescape)
{
if (quote)
result += current;
if (!inquote)
{
inquote = true;

View File

@@ -48,7 +48,7 @@ public:
bool getUntilEOS (std::string&);
bool getN (const int, std::string&);
bool getQuoted (char, std::string&, bool quote = false);
bool getQuoted (char, std::string&);
bool getDigit (int&);
bool getDigit4 (int&);
bool getDigit3 (int&);