Code clean up

This commit is contained in:
Christophe Dumez 2011-04-23 17:20:44 +00:00
parent 8589eb7c0f
commit 7381b0dcf6

View file

@ -420,9 +420,7 @@ QStringList QTorrentHandle::absolute_files_path_uneeded() const {
QDir saveDir(save_path()); QDir saveDir(save_path());
QStringList res; QStringList res;
std::vector<int> fp = torrent_handle::file_priorities(); std::vector<int> fp = torrent_handle::file_priorities();
qDebug() << fp.size() << num_files(); for(uint i = 0; i < fp.size(); ++i) {
Q_ASSERT(fp.size() == num_files());
for(int i = 0; i < num_files(); ++i) {
if(fp[i] == 0) { if(fp[i] == 0) {
const QString file_path = QDir::cleanPath(saveDir.absoluteFilePath(filepath_at(i))); const QString file_path = QDir::cleanPath(saveDir.absoluteFilePath(filepath_at(i)));
if(file_path.contains(".unwanted")) if(file_path.contains(".unwanted"))