From dad726b6ca285af4f7442f0ff77f8924cdcbf8a4 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Fri, 30 Sep 2011 14:53:18 -0400 Subject: [PATCH] Remove unused return parameter --- src/libtomahawk/database/databasecommand_deletefiles.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libtomahawk/database/databasecommand_deletefiles.cpp b/src/libtomahawk/database/databasecommand_deletefiles.cpp index 101b3aadf..faa5f0120 100644 --- a/src/libtomahawk/database/databasecommand_deletefiles.cpp +++ b/src/libtomahawk/database/databasecommand_deletefiles.cpp @@ -71,13 +71,13 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi ) qDebug() << "Deleting" << m_dir.path() << "from db for localsource" << srcid; TomahawkSqlQuery dirquery = dbi->newquery(); - dirquery.prepare( QString( "SELECT id, url FROM file WHERE source IS NULL AND url LIKE ?" ) ); + dirquery.prepare( QString( "SELECT url FROM file WHERE source IS NULL AND url LIKE ?" ) ); dirquery.bindValue( 0, "file://" + m_dir.canonicalPath() + "/%" ); dirquery.exec(); while ( dirquery.next() ) { - QFileInfo fi( dirquery.value( 1 ).toString().mid( 7 ) ); // remove file:// + QFileInfo fi( dirquery.value( 0 ).toString().mid( 7 ) ); // remove file:// if ( fi.canonicalPath() != m_dir.canonicalPath() ) { if ( lastPath != fi.canonicalPath() ) @@ -87,8 +87,8 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi ) continue; } - m_files << dirquery.value( 1 ).toString(); - m_ids << dirquery.value( 1 ).toUInt(); + m_files << dirquery.value( 0 ).toString(); + m_ids << dirquery.value( 0 ).toUInt(); } } else if ( !m_ids.isEmpty() )