From 7b5f438d64b170a184755f1c433f70c69e3063b8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Oct 2009 18:54:24 +0200 Subject: [PATCH] options: removed deprecated password code libmpdclient2 parses the password from the host name. --- src/options.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/options.c b/src/options.c index c9eb5e8..9746d3a 100644 --- a/src/options.c +++ b/src/options.c @@ -367,16 +367,6 @@ options_parse(int argc, const char *argv[]) void options_init(void) { - /* XXX - if ((tmp = g_strstr_len(options.host, strlen(options.host), "@"))) { - char *oldhost = options.host; - *tmp = '\0'; - options.password = locale_to_utf8(oldhost); - options.host = g_strdup(tmp+1); - g_free(oldhost); - } - */ - /* default option values */ options.list_format = g_strdup(DEFAULT_LIST_FORMAT); options.status_format = g_strdup(DEFAULT_STATUS_FORMAT); -- 2.30.2