mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-03 20:57:52 +02:00
* Removed obsolete code path in DbSyncConnection.
This commit is contained in:
@@ -121,11 +121,6 @@ DBSyncConnection::check()
|
|||||||
m_uscache.clear();
|
m_uscache.clear();
|
||||||
changeState( CHECKING );
|
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() )
|
if ( m_source->lastCmdGuid().isEmpty() )
|
||||||
{
|
{
|
||||||
tDebug() << "Fetching lastCmdGuid from database!";
|
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
|
/// Called once we've loaded our cached data about their collection
|
||||||
void
|
void
|
||||||
DBSyncConnection::gotThem( const QVariantMap& m )
|
DBSyncConnection::gotThem( const QVariantMap& m )
|
||||||
|
@@ -65,7 +65,6 @@ public slots:
|
|||||||
void trigger();
|
void trigger();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void gotUs( const QVariantMap& m );
|
|
||||||
void gotThem( const QVariantMap& m );
|
void gotThem( const QVariantMap& m );
|
||||||
|
|
||||||
void fetchOpsData( const QString& sinceguid );
|
void fetchOpsData( const QString& sinceguid );
|
||||||
|
Reference in New Issue
Block a user