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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user