Commit bae6f653 authored by Max Kellermann's avatar Max Kellermann

Instance: merge DatabaseModified() into OnDatabaseModified()

parent eec6d099
......@@ -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
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment