From ed92dbbd8f3537326e10ed8c2585df6302fed853 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 27 Mar 2014 21:30:34 +1300 Subject: FPE fixes --- src/getbat.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/getbat.c') diff --git a/src/getbat.c b/src/getbat.c index 363e725..ad3a760 100644 --- a/src/getbat.c +++ b/src/getbat.c @@ -174,14 +174,6 @@ gint gb_low_capacity() gint gb_percent() { return get_int_value_from_file(CHARGE_VALUE_PATH); - /* - int percent, max_capacity; - if ( (max_capacity = gb_max_capacity()) == 0 ) - return 0; - percent = (gb_current_capacity() * 100) / max_capacity; - if (percent > 100) - percent = 100; - return percent;*/ } /* void gb_time(gchar* time) -- cgit v1.1