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

View File

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