diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-11 15:23:25 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-14 10:42:56 +0200 |
commit | bd3a57fe0471ddeb8f0a168f10629e8f5d7b7b6c (patch) | |
tree | b5fd4e86161aa8eaf9c9f7eb395ba054d663e447 /src/up-device.c | |
parent | 9c27c42a9977afe6e82622bda947b831c3be7197 (diff) | |
download | upower-bd3a57fe0471ddeb8f0a168f10629e8f5d7b7b6c.tar.gz |
daemon: Replace "on-low-battery" property
With "warning-level" property.
Diffstat (limited to 'src/up-device.c')
-rw-r--r-- | src/up-device.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/up-device.c b/src/up-device.c index 15edc0d..1877bab 100644 --- a/src/up-device.c +++ b/src/up-device.c @@ -409,25 +409,6 @@ up_device_get_on_battery (UpDevice *device, gboolean *on_battery) } /** - * up_device_get_low_battery: - * - * Note: Only implement for system devices, i.e. ones supplying the system - **/ -gboolean -up_device_get_low_battery (UpDevice *device, gboolean *low_battery) -{ - UpDeviceClass *klass = UP_DEVICE_GET_CLASS (device); - - g_return_val_if_fail (UP_IS_DEVICE (device), FALSE); - - /* no support */ - if (klass->get_low_battery == NULL) - return FALSE; - - return klass->get_low_battery (device, low_battery); -} - -/** * up_device_get_online: * * Note: Only implement for system devices, i.e. devices supplying the system |