summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/linux/up-device-supply.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
index b1e03c3..e6b7940 100644
--- a/src/linux/up-device-supply.c
+++ b/src/linux/up-device-supply.c
@@ -42,7 +42,6 @@
#define UP_DEVICE_SUPPLY_REFRESH_TIMEOUT 30 /* seconds */
#define UP_DEVICE_SUPPLY_UNKNOWN_TIMEOUT 2 /* seconds */
#define UP_DEVICE_SUPPLY_UNKNOWN_RETRIES 30
-#define UP_DEVICE_SUPPLY_CHARGED_THRESHOLD 90.0f /* % */
#define UP_DEVICE_SUPPLY_COLDPLUG_UNITS_CHARGE TRUE
#define UP_DEVICE_SUPPLY_COLDPLUG_UNITS_ENERGY FALSE
@@ -603,13 +602,6 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply)
percentage = 100.0f;
}
- /* some batteries stop charging much before 100% */
- if (state == UP_DEVICE_STATE_UNKNOWN &&
- percentage > UP_DEVICE_SUPPLY_CHARGED_THRESHOLD) {
- egg_debug ("fixing up unknown %f", percentage);
- state = UP_DEVICE_STATE_FULLY_CHARGED;
- }
-
/* the battery isn't charging or discharging, it's just
* sitting there half full doing nothing: try to guess a state */
if (state == UP_DEVICE_STATE_UNKNOWN) {