From bdfb6c239af53d72f0808fc34e15d671036e8832 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sun, 25 Jan 2009 14:19:28 +0100
Subject: playlist: moved is_valid_playlist_name() to stored_playlist.c

---
 src/playlist.c | 16 ----------------
 1 file changed, 16 deletions(-)

(limited to 'src/playlist.c')

diff --git a/src/playlist.c b/src/playlist.c
index 04cb59f3c..ab23691e3 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -1091,19 +1091,3 @@ unsigned getPlaylistSongId(unsigned song)
 {
 	return queue_position_to_id(&playlist.queue, song);
 }
-
-/*
- * Not supporting '/' was done out of laziness, and we should really
- * strive to support it in the future.
- *
- * Not supporting '\r' and '\n' is done out of protocol limitations (and
- * arguably laziness), but bending over head over heels to modify the
- * protocol (and compatibility with all clients) to support idiots who
- * put '\r' and '\n' in filenames isn't going to happen, either.
- */
-int is_valid_playlist_name(const char *utf8path)
-{
-	return strchr(utf8path, '/') == NULL &&
-		strchr(utf8path, '\n') == NULL &&
-		strchr(utf8path, '\r') == NULL;
-}
-- 
cgit v1.2.3