Code

options: removed deprecated password code
authorMax Kellermann <max@duempel.org>
Sat, 10 Oct 2009 16:54:24 +0000 (18:54 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 10 Oct 2009 16:54:24 +0000 (18:54 +0200)
libmpdclient2 parses the password from the host name.

src/options.c

index c9eb5e8a954c3fcbb812caa4651e36b1f5888548..9746d3ab78c08b67052ba11076887499f0b138fa 100644 (file)
@@ -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);