remove unused and some clang compil fixes

This commit is contained in:
Jacek Jendrzej
2016-04-17 13:46:16 +02:00
parent c521e67b10
commit 374a172aef
21 changed files with 35 additions and 45 deletions

View File

@@ -290,12 +290,13 @@ void cYTCache::cancelAll(MI_MOVIE_INFO::miSource source)
if (pending.empty())
return;
if (pending.size() > 1)
for (std::vector<MI_MOVIE_INFO>::iterator it = pending.begin() + 1; it != pending.end();)
for (std::vector<MI_MOVIE_INFO>::iterator it = pending.begin() + 1; it != pending.end();){
if ((*it).source == source) {
failed.push_back(*it);
it = pending.erase(it);
} else
++it;
}
if (pending.front().source != source)
return;
}