remove mpd_password variable, it should be defined within mpd_host

This commit is contained in:
Andrzej Rybczak
2008-11-28 21:58:55 +01:00
parent 3955606c72
commit 07c9fd6926
4 changed files with 0 additions and 11 deletions

View File

@@ -9,8 +9,6 @@
#
#mpd_host = "localhost"
#
#mpd_password = ""
#
#mpd_port = "6600"
#
#mpd_music_dir = ""

View File

@@ -187,8 +187,6 @@ int main(int argc, char *argv[])
Mpd->SetHostname(Config.mpd_host);
if (Config.mpd_port != 6600)
Mpd->SetPort(Config.mpd_port);
if (!Config.mpd_password.empty())
Mpd->SetPassword(Config.mpd_password);
Mpd->SetTimeout(Config.mpd_connection_timeout);

View File

@@ -218,7 +218,6 @@ void DefaultKeys(ncmpcpp_keys &keys)
void DefaultConfiguration(ncmpcpp_config &conf)
{
conf.mpd_host = "localhost";
conf.mpd_password = "";
conf.song_list_format = "{%a - }{%t}|{[.white]%f[/white]}%r{[.green](%l)[/green]}";
conf.song_columns_list_format = "(8)[green]{l} (25)[cyan]{a} (40){t} (30)[red]{b}";
conf.song_status_format = "{(%l) }{%a - }{%t}|{%f}";
@@ -502,11 +501,6 @@ void ReadConfiguration(ncmpcpp_config &conf)
if (!v.empty())
conf.mpd_host = v;
}
else if (it->find("mpd_password") != string::npos)
{
if (!v.empty())
conf.mpd_password = v;
}
else if (it->find("mpd_music_dir") != string::npos)
{
if (!v.empty())

View File

@@ -95,7 +95,6 @@ struct ncmpcpp_keys
struct ncmpcpp_config
{
string mpd_host;
string mpd_password;
string mpd_music_dir;
string song_list_format;
string song_columns_list_format;