mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-05 18:41:05 +00:00
Purge some dead code (mostly Irrlicht) (#16111)
* Remove obsolete Irrlicht attributes system
* Remove dead GUI element types
* Remove some obsolete Irrlicht headers
* Fix some oopsies from d96f5e1
This commit is contained in:
parent
377fa5bb14
commit
f4285a59ac
39 changed files with 24 additions and 831 deletions
|
@ -1085,9 +1085,8 @@ std::optional<double> my_string_to_double(const std::string &s)
|
|||
if (s.empty())
|
||||
return std::nullopt;
|
||||
char *end = nullptr;
|
||||
errno = 0;
|
||||
// Note: this also supports hexadecimal notation like "0x1.0p+1"
|
||||
double number = std::strtod(s.data(), &end);
|
||||
double number = std::strtod(s.c_str(), &end);
|
||||
if (end != &*s.end())
|
||||
return std::nullopt;
|
||||
return number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue