aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-13 16:30:44 +0200
committerMax Kellermann <max@duempel.org>2008-10-13 16:30:44 +0200
commitbc85e92a722d945d193c9f3881e4ee9f96c8f2b6 (patch)
treea09dabcccbd447ea1bb162047ae8090a24376a7a /src/ls.h
parent07c9b62764c2704380338dd26db7dc4d9b67dc2e (diff)
downloadmpd-bc85e92a722d945d193c9f3881e4ee9f96c8f2b6.tar.gz
mpd-bc85e92a722d945d193c9f3881e4ee9f96c8f2b6.tar.xz
mpd-bc85e92a722d945d193c9f3881e4ee9f96c8f2b6.zip
playlist: don't use isPlaylist() in deletePlaylist()
The only caller of deletePlaylist() appends PLAYLIST_FILE_SUFFIX, so we can be sure it's already there. We don't need to stat the file, since unlink() does all the checking.
Diffstat (limited to 'src/ls.h')
-rw-r--r--src/ls.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ls.h b/src/ls.h
index f2a2c510b..fdc61bd81 100644
--- a/src/ls.h
+++ b/src/ls.h
@@ -38,8 +38,6 @@ int myStat(const char *utf8file, struct stat *st);
int isDir(const char *utf8name);
-int isPlaylist(const char *utf8file);
-
struct decoder_plugin *hasMusicSuffix(const char *utf8file, unsigned int next);
struct decoder_plugin *isMusic(const char *utf8file, time_t * mtime,