1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 23:39:42 +01:00

Remove unused mutates parameters, since we base our work on what the command claims

This commit is contained in:
Jeff Mitchell 2012-06-21 14:22:58 -04:00
parent 199dd1afc7
commit 6b6ccee575
3 changed files with 4 additions and 7 deletions

View File

@ -42,7 +42,7 @@ Database::Database( const QString& dbname, QObject* parent )
: QObject( parent )
, m_ready( false )
, m_impl( new DatabaseImpl( dbname ) )
, m_workerRW( new DatabaseWorker( this, true ) )
, m_workerRW( new DatabaseWorker( this ) )
{
s_instance = this;
@ -100,7 +100,7 @@ Database::enqueue( const QSharedPointer<DatabaseCommand>& lc )
// create new thread if < WORKER_THREADS
if ( m_workers.count() < m_maxConcurrentThreads )
{
DatabaseWorker* worker = new DatabaseWorker( this, false );
DatabaseWorker* worker = new DatabaseWorker( this );
worker->start();
m_workers << worker;

View File

@ -34,14 +34,11 @@
//#define DEBUG_TIMING TRUE
#endif
DatabaseWorker::DatabaseWorker( Database* db, bool mutates )
DatabaseWorker::DatabaseWorker( Database* db )
: QThread()
, m_db( db )
, m_outstanding( 0 )
{
Q_UNUSED( db );
Q_UNUSED( mutates );
moveToThread( this );
qDebug() << "CTOR DatabaseWorker" << this->thread();

View File

@ -39,7 +39,7 @@ class DatabaseWorker : public QThread
Q_OBJECT
public:
DatabaseWorker( Database*, bool mutates );
DatabaseWorker( Database* );
~DatabaseWorker();
bool busy() const { return m_outstanding > 0; }