remove unneded checks in Lyrics::Update() if Reload is requested

they are checked again in Lyrics::SwitchTo(), so why bother?
This commit is contained in:
Andrzej Rybczak
2009-09-15 21:12:58 +00:00
parent d6fbb2f657
commit 6e903f9fc8

View File

@@ -86,14 +86,8 @@ void Lyrics::Update()
myLyrics->Take(); myLyrics->Take();
# endif // HAVE_CURL_CURL_H && HAVE_PTHREAD_H # endif // HAVE_CURL_CURL_H && HAVE_PTHREAD_H
if (!Reload) if (Reload)
return;
const MPD::Song *s = myPlaylist->NowPlayingSong();
if (s && !s->GetArtist().empty() && !s->GetTitle().empty())
SwitchTo(); SwitchTo();
else
Reload = 0;
} }
void Lyrics::SwitchTo() void Lyrics::SwitchTo()