test/ConfigGlue: merge duplicate code from various debug programs
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user