mathlib: minor fix

This commit is contained in:
Daniel Marjamäki 2009-08-13 22:31:58 +02:00
parent 3de825c290
commit 51365c4b9d
1 changed files with 0 additions and 4 deletions

View File

@ -48,10 +48,6 @@ double MathLib::toDoubleNumber(const std::string &str)
{
return std::strtoul(str.c_str(), '\0', 16);
}
if (strncmp(str.c_str(), "0", 1) == 0)
{
return std::strtoul(str.c_str(), '\0', 8);
}
return std::atof(str.c_str());
}