remove unused and some clang compil fixes

Origin commit data
------------------
Branch: ni/coolstream
Commit: 374a172aef
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-04-17 (Sun, 17 Apr 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2016-04-17 13:46:16 +02:00
parent bd3e7931b0
commit cd9cb4ba95
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;
}