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:
@ -586,16 +586,6 @@ bool OS::is_vsync_via_compositor_enabled() const {
|
||||
return _vsync_via_compositor;
|
||||
}
|
||||
|
||||
OS::PowerState OS::get_power_state() {
|
||||
return POWERSTATE_UNKNOWN;
|
||||
}
|
||||
int OS::get_power_seconds_left() {
|
||||
return -1;
|
||||
}
|
||||
int OS::get_power_percent_left() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
void OS::set_has_server_feature_callback(HasServerFeatureCallback p_callback) {
|
||||
|
||||
has_server_feature_callback = p_callback;
|
||||
|
||||
Reference in New Issue
Block a user