diff options
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/service.c b/src/service.c index 9f18825..61a945c 100644 --- a/src/service.c +++ b/src/service.c @@ -200,14 +200,6 @@ device_compare_func (gconstpointer ga, gconstpointer gb) } state = UP_DEVICE_STATE_DISCHARGING; - - /* discharging items with more than 10% remaining always lose */ - if (!ret && (((a_state == state) && !a_time && (a_percentage > 10)))) - ret = 1; - - if (!ret && (((b_state == state) && !b_time && (b_percentage > 10)))) - ret = -1; - if (!ret && (((a_state == state) && a_time) || ((b_state == state) && b_time))) { |