diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-05 21:56:20 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-05 21:56:20 +0100 |
commit | b0739eca87439a8f9cc2a0f9a6fcba1f68708df6 (patch) | |
tree | 7b53421e6025811fac47abf751a78395d26c648e /test/DumpDatabase.cxx | |
parent | 848f6aa5ab4d15289248646b60f11b5cf508b46d (diff) |
test/ConfigGlue: merge duplicate code from various debug programs
Diffstat (limited to 'test/DumpDatabase.cxx')
-rw-r--r-- | test/DumpDatabase.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx index 755f0904c..4a32f6e45 100644 --- a/test/DumpDatabase.cxx +++ b/test/DumpDatabase.cxx @@ -1,5 +1,5 @@ /* - * Copyright 2003-2018 The Music Player Daemon Project + * Copyright 2003-2019 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -26,11 +26,7 @@ #include "db/LightDirectory.hxx" #include "song/LightSong.hxx" #include "db/PlaylistVector.hxx" -#include "config/File.hxx" -#include "config/Migrate.hxx" -#include "config/Data.hxx" -#include "config/Param.hxx" -#include "config/Block.hxx" +#include "ConfigGlue.hxx" #include "tag/Config.hxx" #include "fs/Path.hxx" #include "event/Thread.hxx" @@ -124,9 +120,7 @@ try { GlobalInit init; - ConfigData config; - ReadConfigFile(config, config_path); - Migrate(config); + const auto config = AutoLoadConfigFile(config_path); TagLoadConfig(config); |