summaryrefslogtreecommitdiff
path: root/apps/menus/main_menu.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-15 19:40:55 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 21:20:13 +0000
commit092c340a2062fa98b7387fc5fd63578ddae7d0b6 (patch)
tree98ec96946eeb2ae709cb0528cc6998e21bb9b290 /apps/menus/main_menu.c
parent17f7cc92c258bc456a27c3e7c5a19c9409851879 (diff)
[1/4] Remove SH support and all archos targets
This removes all code specific to SH targets Change-Id: I7980523785d2596e65c06430f4638eec74a06061
Diffstat (limited to 'apps/menus/main_menu.c')
-rw-r--r--apps/menus/main_menu.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c
index ee60b37497..7f94571226 100644
--- a/apps/menus/main_menu.c
+++ b/apps/menus/main_menu.c
@@ -264,21 +264,10 @@ static const char* info_getname(int selected_item, void *data,
return str(LANG_BATTERY_CHARGE);
else
#elif CONFIG_CHARGING >= CHARGING_MONITOR
-#ifdef ARCHOS_RECORDER
- /* Report the particular algorithm state */
- if (charge_state == CHARGING)
- return str(LANG_BATTERY_CHARGE);
- else if (charge_state == TOPOFF)
- return str(LANG_BATTERY_TOPOFF_CHARGE);
- else if (charge_state == TRICKLE)
- return str(LANG_BATTERY_TRICKLE_CHARGE);
- else
-#else /* !ARCHOS_RECORDER */
/* Go by what power management reports */
if (charging_state())
return str(LANG_BATTERY_CHARGE);
else
-#endif /* ARCHOS_RECORDER */
#endif /* CONFIG_CHARGING = */
if (battery_level() >= 0)
snprintf(buffer, buffer_len, str(LANG_BATTERY_TIME),
@@ -394,24 +383,6 @@ static int info_speak_item(int selected_item, void * data)
}
else
#elif CONFIG_CHARGING >= CHARGING_MONITOR
-#ifdef ARCHOS_RECORDER
- /* Report the particular algorithm state */
- if (charge_state == CHARGING)
- {
- talk_id(LANG_BATTERY_CHARGE, true);
- if (battery_level() >= 0)
- talk_value(battery_level(), UNIT_PERCENT, true);
- }
- else if (charge_state == TOPOFF)
- talk_id(LANG_BATTERY_TOPOFF_CHARGE, true);
- else if (charge_state == TRICKLE)
- {
- talk_id(LANG_BATTERY_TRICKLE_CHARGE, true);
- if (battery_level() >= 0)
- talk_value(battery_level(), UNIT_PERCENT, true);
- }
- else
-#else /* !ARCHOS_RECORDER */
/* Go by what power management reports */
if (charging_state())
{
@@ -420,7 +391,6 @@ static int info_speak_item(int selected_item, void * data)
talk_value(battery_level(), UNIT_PERCENT, true);
}
else
-#endif /* ARCHOS_RECORDER */
#endif /* CONFIG_CHARGING = */
if (battery_level() >= 0)
{