diff --git a/src/mathlib.cpp b/src/mathlib.cpp index 1b9ca7ae0..b94047ab5 100644 --- a/src/mathlib.cpp +++ b/src/mathlib.cpp @@ -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()); }