1
0
Fork 0
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:
Lars Müller 2025-05-04 16:31:44 +02:00 committed by GitHub
parent 377fa5bb14
commit f4285a59ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 24 additions and 831 deletions

View file

@ -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;