aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-11-12 22:04:04 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-11-12 22:04:04 +0100
commita87015b357345609975e9ab52da94213944d0041 (patch)
tree8d5ff0dc4212961894f1b66c240b71f8a95a82e2
parentce3cef135571b17b901b08d6e3bc4052de966c26 (diff)
parentcdf24598041c6cb13bac696c42bbb66ec869b216 (diff)
downloadayatana-indicator-power-a87015b357345609975e9ab52da94213944d0041.tar.gz
ayatana-indicator-power-a87015b357345609975e9ab52da94213944d0041.tar.bz2
ayatana-indicator-power-a87015b357345609975e9ab52da94213944d0041.zip
Merge branch 'fredldotme-sargo-battery'
Attributes GH PR #70: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/70
-rw-r--r--src/service.c8
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)))
{