remove redundant check in MPD::Song::SetHashAndSlash()

http is already filtered out with isStream() function
master
Andrzej Rybczak 17 years ago
parent 25deec013c
commit d2ffdc2bb5
  1. 2
      src/song.cpp

@ -453,7 +453,7 @@ void MPD::Song::SetHashAndSlash()
if (!isStream()) if (!isStream())
{ {
const char *tmp = strrchr(itsSong->file, '/'); const char *tmp = strrchr(itsSong->file, '/');
itsSlash = tmp && *(tmp-1) != '/' /* no http:// */ ? tmp-itsSong->file : std::string::npos; itsSlash = tmp ? tmp-itsSong->file : std::string::npos;
} }
itsHash = calc_hash(itsSong->file); itsHash = calc_hash(itsSong->file);
} }

Loading…
Cancel
Save