summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-02 13:48:16 +0100
committerMax Kellermann <max@musicpd.org>2018-01-02 13:48:16 +0100
commit4db1b1b25051f6399f5be477b1bed9644b8c2b71 (patch)
tree6fb47fb6d2158d9b8f713a7e121b997dc62ea83e /src
parentff6b263b48f1f9e00dbd5d41863af6862fd2bdf0 (diff)
storage/State: remove useless #ifdef ENABLE_DATABASE
This source file isn't compiled when the database is disabled.
Diffstat (limited to 'src')
-rw-r--r--src/storage/StorageState.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/storage/StorageState.cxx b/src/storage/StorageState.cxx
index 721a0ce37..2e5530738 100644
--- a/src/storage/StorageState.cxx
+++ b/src/storage/StorageState.cxx
@@ -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);