Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
karekoho committed Feb 28, 2022
1 parent 809a633 commit ad80199
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/json/json_number.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ format::json::number::_parse (const wchar_t * const json_text)
return _frag (); // Look for decimals
}

//return (_digitp[DOUBLE][END] = ++_readp); // Found single zero: 0[\0NaN]

_digitp[DOUBLE][END] = ++_readp; // Found single zero: 0[\0NaN]

long long ll = static_cast<long long> (_calculate (_digitp));
Expand All @@ -131,8 +129,6 @@ format::json::number::_parse (const wchar_t * const json_text)
throw json_syntax_error (UNEXPECTED_TOKEN, _readp, 1);

_digitp[DOUBLE][END] = _readp;
// _value.long_double = _calculate (_digitp); // Integer value
//__to_string ();

long long ll = static_cast<long long> (_calculate (_digitp)); // Integer value
_long_double_str_length = __to_string_ld (ll);
Expand Down Expand Up @@ -169,9 +165,6 @@ format::json::number::_frag ()
if (peek == 'e' || peek == 'E')
return _exp ();

//_value.long_double = _calculate (_digitp);
//__to_string ();

long double ld = _calculate (_digitp);
_long_double_str_length = __to_string_ld (ld);
_value.long_double = ld;
Expand All @@ -192,9 +185,6 @@ format::json::number::_exp ()

_digitp[EXP][END] = _readp;

//_value.long_double = _calculate (_digitp);
//__to_string ();

long double ld = _calculate (_digitp);
_long_double_str_length = __to_string_ld (ld);
_value.long_double = ld;
Expand Down

0 comments on commit ad80199

Please sign in to comment.