mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-04 16:12:24 +02:00
* Removed obsolete code path in DbSyncConnection.
This commit is contained in:
parent
82794ed207
commit
a7c3cce720
@ -121,11 +121,6 @@ DBSyncConnection::check()
|
||||
m_uscache.clear();
|
||||
changeState( CHECKING );
|
||||
|
||||
// load last-modified etc data for our collection and theirs from our DB:
|
||||
DatabaseCommand_CollectionStats* cmd_us = new DatabaseCommand_CollectionStats( SourceList::instance()->getLocal() );
|
||||
connect( cmd_us, SIGNAL( done( QVariantMap ) ), SLOT( gotUs( QVariantMap ) ) );
|
||||
Database::instance()->enqueue( QSharedPointer<DatabaseCommand>(cmd_us) );
|
||||
|
||||
if ( m_source->lastCmdGuid().isEmpty() )
|
||||
{
|
||||
tDebug() << "Fetching lastCmdGuid from database!";
|
||||
@ -140,17 +135,6 @@ DBSyncConnection::check()
|
||||
}
|
||||
|
||||
|
||||
/// Called once we've loaded our mtimes etc from the DB for our local
|
||||
/// collection - send them to the remote peer to compare.
|
||||
void
|
||||
DBSyncConnection::gotUs( const QVariantMap& m )
|
||||
{
|
||||
Q_UNUSED( m )
|
||||
if ( !m_uscache.empty() )
|
||||
sendOps();
|
||||
}
|
||||
|
||||
|
||||
/// Called once we've loaded our cached data about their collection
|
||||
void
|
||||
DBSyncConnection::gotThem( const QVariantMap& m )
|
||||
|
@ -65,7 +65,6 @@ public slots:
|
||||
void trigger();
|
||||
|
||||
private slots:
|
||||
void gotUs( const QVariantMap& m );
|
||||
void gotThem( const QVariantMap& m );
|
||||
|
||||
void fetchOpsData( const QString& sinceguid );
|
||||
|
Loading…
x
Reference in New Issue
Block a user