MathLib:IsNullValue(): removed commented out code.

This commit is contained in:
orbitcowboy 2014-04-11 01:28:16 +02:00
parent 9c08885caf
commit 6be53376f4
1 changed files with 0 additions and 7 deletions

View File

@ -692,13 +692,6 @@ bool MathLib::isNullValue(const std::string &s)
}
}
return state == LEADING_ZERO || state == ZERO || state == DOT || state == E_DIGIT || state == TRAILING_ZERO || state == TRAILING_F;
/*
for (size_t i = 0; i < str.size(); i++) {
if (std::isdigit(static_cast<unsigned char>(str[i])) && str[i] != '0') // May not contain digits other than 0
return false;
}
return !str.empty() && (std::isdigit(static_cast<unsigned char>(str[0])) || str[0] == '-' || str[0] == '+'); // Has to be a number
*/
}
bool MathLib::isOctalDigit(char c)