From 7381b0dcf6497751ef7a80eb5ebd1fc4b1e0957d Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 23 Apr 2011 17:20:44 +0000 Subject: [PATCH] Code clean up --- src/qtlibtorrent/qtorrenthandle.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/qtlibtorrent/qtorrenthandle.cpp b/src/qtlibtorrent/qtorrenthandle.cpp index c9c465ae7..cb6b40bf0 100644 --- a/src/qtlibtorrent/qtorrenthandle.cpp +++ b/src/qtlibtorrent/qtorrenthandle.cpp @@ -420,9 +420,7 @@ QStringList QTorrentHandle::absolute_files_path_uneeded() const { QDir saveDir(save_path()); QStringList res; std::vector fp = torrent_handle::file_priorities(); - qDebug() << fp.size() << num_files(); - Q_ASSERT(fp.size() == num_files()); - for(int i = 0; i < num_files(); ++i) { + for(uint i = 0; i < fp.size(); ++i) { if(fp[i] == 0) { const QString file_path = QDir::cleanPath(saveDir.absoluteFilePath(filepath_at(i))); if(file_path.contains(".unwanted"))