Instance: merge DatabaseModified() into OnDatabaseModified()
This commit is contained in:
parent
eec6d09959
commit
bae6f653d1
@ -40,16 +40,6 @@ Instance::DeleteSong(const char *uri)
|
||||
partition->DeleteSong(uri);
|
||||
}
|
||||
|
||||
void
|
||||
Instance::DatabaseModified()
|
||||
{
|
||||
assert(database != nullptr);
|
||||
|
||||
stats_invalidate();
|
||||
partition->DatabaseModified(*database);
|
||||
idle_add(IDLE_DATABASE);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void
|
||||
@ -69,7 +59,13 @@ Instance::SyncWithPlayer()
|
||||
void
|
||||
Instance::OnDatabaseModified()
|
||||
{
|
||||
DatabaseModified();
|
||||
assert(database != nullptr);
|
||||
|
||||
/* propagate the change to all subsystems */
|
||||
|
||||
stats_invalidate();
|
||||
partition->DatabaseModified(*database);
|
||||
idle_add(IDLE_DATABASE);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -81,13 +81,6 @@ struct Instance final
|
||||
Database *GetDatabase(Error &error);
|
||||
|
||||
void DeleteSong(const char *uri);
|
||||
|
||||
/**
|
||||
* The database has been modified. Propagate the change to
|
||||
* all subsystems.
|
||||
*/
|
||||
void DatabaseModified();
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user