mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Remove unused return parameter
This commit is contained in:
@@ -71,13 +71,13 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi )
|
|||||||
qDebug() << "Deleting" << m_dir.path() << "from db for localsource" << srcid;
|
qDebug() << "Deleting" << m_dir.path() << "from db for localsource" << srcid;
|
||||||
TomahawkSqlQuery dirquery = dbi->newquery();
|
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.bindValue( 0, "file://" + m_dir.canonicalPath() + "/%" );
|
||||||
dirquery.exec();
|
dirquery.exec();
|
||||||
|
|
||||||
while ( dirquery.next() )
|
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 ( fi.canonicalPath() != m_dir.canonicalPath() )
|
||||||
{
|
{
|
||||||
if ( lastPath != fi.canonicalPath() )
|
if ( lastPath != fi.canonicalPath() )
|
||||||
@@ -87,8 +87,8 @@ DatabaseCommand_DeleteFiles::exec( DatabaseImpl* dbi )
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_files << dirquery.value( 1 ).toString();
|
m_files << dirquery.value( 0 ).toString();
|
||||||
m_ids << dirquery.value( 1 ).toUInt();
|
m_ids << dirquery.value( 0 ).toUInt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( !m_ids.isEmpty() )
|
else if ( !m_ids.isEmpty() )
|
||||||
|
Reference in New Issue
Block a user