aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-22 19:16:35 +0200
committerMax Kellermann <max@duempel.org>2008-10-22 19:16:35 +0200
commitf8e586402d2b3c70fa0f28fc3ad6e542128e5562 (patch)
tree991daba05ee487a99a7bc8dd8df9e35e6f186409 /src/ls.c
parenta65e20b50eaf603dd551e5be0aa05f807aa7eb05 (diff)
downloadmpd-f8e586402d2b3c70fa0f28fc3ad6e542128e5562.tar.gz
mpd-f8e586402d2b3c70fa0f28fc3ad6e542128e5562.tar.xz
mpd-f8e586402d2b3c70fa0f28fc3ad6e542128e5562.zip
command: added print_spl_list()
The function print_spl_list() replaces the old function lsPlaylists() from ls.c.
Diffstat (limited to '')
-rw-r--r--src/ls.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/ls.c b/src/ls.c
index 15b7b4813..b70952214 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -98,24 +98,6 @@ int isRemoteUrl(const char *url)
return 0;
}
-int lsPlaylists(struct client *client, const char *utf8path)
-{
- GPtrArray *list = spl_list();
- if (list == NULL)
- return 0;
-
- for (unsigned i = 0; i < list->len; ++i) {
- struct stored_playlist_info *playlist =
- g_ptr_array_index(list, i);
-
- client_printf(client, "playlist: %s%s\n",
- utf8path, playlist->name);
- }
-
- spl_list_free(list);
- return 0;
-}
-
/* suffixes should be ascii only characters */
const char *getSuffix(const char *utf8file)
{