summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2009-04-05 19:39:09 +0000
committerAlexander Levin <al.le@rockbox.org>2009-04-05 19:39:09 +0000
commit9188f0ffd7ce97101a5b2d697cc43072cd63b502 (patch)
tree77ab09cf1bf11606435f305d7077864245619f81
parentbe7f5253a1dfa51455a092bb08c0b1d7d633b2b3 (diff)
downloadrockbox-9188f0ffd7ce97101a5b2d697cc43072cd63b502.tar.gz
rockbox-9188f0ffd7ce97101a5b2d697cc43072cd63b502.zip
Drop the unnecessary checks since they are made by the caller
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20632 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/gwps.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index 8256fee84f..32a27212a4 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -92,8 +92,7 @@ static void change_dir(int direction)
92 92
93static void prev_track(unsigned long skip_thresh) 93static void prev_track(unsigned long skip_thresh)
94{ 94{
95 if (!global_settings.prevent_skip 95 if (wps_state.id3->elapsed < skip_thresh)
96 && (wps_state.id3->elapsed < skip_thresh))
97 { 96 {
98 audio_prev(); 97 audio_prev();
99 return; 98 return;
@@ -124,8 +123,6 @@ static void prev_track(unsigned long skip_thresh)
124 123
125static void next_track(void) 124static void next_track(void)
126{ 125{
127 if (global_settings.prevent_skip)
128 return;
129 /* take care of if we're playing a cuesheet */ 126 /* take care of if we're playing a cuesheet */
130 if (cuesheet_is_enabled() && wps_state.id3->cuesheet_type) 127 if (cuesheet_is_enabled() && wps_state.id3->cuesheet_type)
131 { 128 {