diff options
author | Andreas Gampe <agampe@google.com> | 2014-11-24 18:48:55 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-11-24 18:48:55 -0800 |
commit | c0970d31f3089c16d6f230decfef2566731a529a (patch) | |
tree | 2138c45e1e926010b2a7c20a30580f1656669a0a /healthd | |
parent | 7f187c5f95d6bf0514e71e0e074768bd5395d45f (diff) | |
download | core-c0970d31f3089c16d6f230decfef2566731a529a.tar.gz core-c0970d31f3089c16d6f230decfef2566731a529a.tar.bz2 core-c0970d31f3089c16d6f230decfef2566731a529a.zip |
Healthd: Remove unused variables
For build-system CFLAGS clean-up, remove unused variables.
Change-Id: Ifc5884518bfdb744ea9823b98db544dbe59c20d2
Diffstat (limited to 'healthd')
-rw-r--r-- | healthd/BatteryMonitor.cpp | 1 | ||||
-rw-r--r-- | healthd/healthd.cpp | 1 | ||||
-rw-r--r-- | healthd/healthd_mode_charger.cpp | 6 |
3 files changed, 0 insertions, 8 deletions
diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index 4a6b7020a..06497c26d 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -389,7 +389,6 @@ void BatteryMonitor::init(struct healthd_config *hc) { if (!strcmp(name, ".") || !strcmp(name, "..")) continue; - char buf[20]; // Look for "type" file in each subdirectory path.clear(); path.appendFormat("%s/%s/type", POWER_SUPPLY_SYSFS_PATH, name); diff --git a/healthd/healthd.cpp b/healthd/healthd.cpp index 30a4b4267..b34583d95 100644 --- a/healthd/healthd.cpp +++ b/healthd/healthd.cpp @@ -64,7 +64,6 @@ static int epollfd; #define MAX_EPOLL_EVENTS 40 static int uevent_fd; static int wakealarm_fd; -static int binder_fd; // -1 for no epoll timeout static int awake_poll_interval = -1; diff --git a/healthd/healthd_mode_charger.cpp b/healthd/healthd_mode_charger.cpp index 394feb815..291cb6ca6 100644 --- a/healthd/healthd_mode_charger.cpp +++ b/healthd/healthd_mode_charger.cpp @@ -350,7 +350,6 @@ static void reset_animation(struct animation *anim) static void update_screen_state(struct charger *charger, int64_t now) { struct animation *batt_anim = charger->batt_anim; - int cur_frame; int disp_time; if (!batt_anim->run || now < charger->next_screen_transition) @@ -393,7 +392,6 @@ static void update_screen_state(struct charger *charger, int64_t now) /* animation starting, set up the animation */ if (batt_anim->cur_frame == 0) { int batt_cap; - int ret; LOGV("[%" PRId64 "] animation starting\n", now); batt_cap = get_battery_capacity(); @@ -517,7 +515,6 @@ static void set_next_key_check(struct charger *charger, static void process_key(struct charger *charger, int code, int64_t now) { struct key_state *key = &charger->keys[code]; - int64_t next_key_check; if (code == KEY_POWER) { if (key->down) { @@ -590,7 +587,6 @@ void healthd_mode_charger_heartbeat() { struct charger *charger = &charger_state; int64_t now = curr_time_ms(); - int ret; handle_input_state(charger, now); handle_power_supply_state(charger, now); @@ -625,8 +621,6 @@ int healthd_mode_charger_preparetowait(void) int64_t now = curr_time_ms(); int64_t next_event = INT64_MAX; int64_t timeout; - struct input_event ev; - int ret; LOGV("[%" PRId64 "] next screen: %" PRId64 " next key: %" PRId64 " next pwr: %" PRId64 "\n", now, charger->next_screen_transition, charger->next_key_check, |