summaryrefslogtreecommitdiffstats
path: root/apps/gui/wps.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-10-02 19:47:51 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-10-18 12:56:28 +0100
commit6e4c866756d7c443c9f8cae0a794daf528706078 (patch)
tree8ead31ab9dac1fcc2322cddda6aedb8c7c4c65bd /apps/gui/wps.c
parente03bc66594af9b412a6b0eb6e792518759133181 (diff)
downloadrockbox-6e4c866756.tar.gz
rockbox-6e4c866756.zip
Remove unused 'may_fade' argument of pause/unpause_action
Change-Id: I4eedcf30fa704521e751732a56775c43e9a8bd99
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r--apps/gui/wps.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index 837621fb44..4d22a83fd6 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -115,7 +115,7 @@ static void update_non_static(void)
skin_update(WPS, i, SKIN_REFRESH_NON_STATIC);
}
-void pause_action(bool may_fade, bool updatewps)
+void pause_action(bool updatewps)
{
/* Do audio first, then update, unless skin were to use its local
status in which case, reverse it */
@@ -132,11 +132,9 @@ void pause_action(bool may_fade, bool updatewps)
- global_settings.pause_rewind * 1000;
audio_ff_rewind(newpos > 0 ? newpos : 0);
}
-
- (void)may_fade;
}
-void unpause_action(bool may_fade, bool updatewps)
+void unpause_action(bool updatewps)
{
/* Do audio first, then update, unless skin were to use its local
status in which case, reverse it */
@@ -144,8 +142,6 @@ void unpause_action(bool may_fade, bool updatewps)
if (updatewps)
update_non_static();
-
- (void)may_fade;
}
static bool update_onvol_change(enum screen_type screen)
@@ -578,12 +574,12 @@ void wps_do_playpause(bool updatewps)
if ( state->paused )
{
state->paused = false;
- unpause_action(true, updatewps);
+ unpause_action(updatewps);
}
else
{
state->paused = true;
- pause_action(true, updatewps);
+ pause_action(updatewps);
settings_save();
#if !defined(HAVE_SW_POWEROFF)
call_storage_idle_notifys(true); /* make sure resume info is saved */