mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Remove incomplete battery status/power API
It was initially implemented in #5871 for Godot 3.0, but never really completed or thoroughly tested for most platforms. It then stayed in limbo and nobody seems really keen to finish it, so it's better to remove it in 4.0, and re-add eventually (possibly with a different API) if there's demand and an implementation confirmed working on all platforms. Closes #8770.
This commit is contained in:
parent
a9c85e79ad
commit
3dea5fd631
41 changed files with 1 additions and 2013 deletions
|
@ -1244,24 +1244,6 @@ String OS_JavaScript::get_resource_dir() const {
|
|||
return "/";
|
||||
}
|
||||
|
||||
OS::PowerState OS_JavaScript::get_power_state() {
|
||||
|
||||
WARN_PRINT("Power management is not supported for the HTML5 platform, defaulting to POWERSTATE_UNKNOWN");
|
||||
return OS::POWERSTATE_UNKNOWN;
|
||||
}
|
||||
|
||||
int OS_JavaScript::get_power_seconds_left() {
|
||||
|
||||
WARN_PRINT("Power management is not supported for the HTML5 platform, defaulting to -1");
|
||||
return -1;
|
||||
}
|
||||
|
||||
int OS_JavaScript::get_power_percent_left() {
|
||||
|
||||
WARN_PRINT("Power management is not supported for the HTML5 platform, defaulting to -1");
|
||||
return -1;
|
||||
}
|
||||
|
||||
void OS_JavaScript::file_access_close_callback(const String &p_file, int p_flags) {
|
||||
|
||||
OS_JavaScript *os = get_singleton();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue