storage/State: remove useless #ifdef ENABLE_DATABASE
This source file isn't compiled when the database is disabled.
This commit is contained in:
parent
ff6b263b48
commit
4db1b1b250
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue