storage/State: remove useless #ifdef ENABLE_DATABASE

This source file isn't compiled when the database is disabled.
This commit is contained in:
Max Kellermann 2018-01-02 13:48:16 +01:00
parent ff6b263b48
commit 4db1b1b250
1 changed files with 0 additions and 2 deletions

View File

@ -99,7 +99,6 @@ storage_state_restore(const char *line, TextFile &file, Instance &instance)
return true;
}
#ifdef ENABLE_DATABASE
Database *db = instance.database;
if (db != nullptr && db->IsPlugin(simple_db_plugin)) {
try {
@ -108,7 +107,6 @@ storage_state_restore(const char *line, TextFile &file, Instance &instance)
throw;
}
}
#endif
((CompositeStorage*)instance.storage)->Mount(uri.c_str(), storage);