mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-25 02:09:48 +01:00
Remove unused return parameter
This commit is contained in:
parent
4aa8ec6bb8
commit
dad726b6ca
@ -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() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user