aboutsummaryrefslogtreecommitdiff
path: root/src/ls.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-13 16:56:00 +0200
committerMax Kellermann <max@duempel.org>2008-10-13 16:56:00 +0200
commitf71ac4d479502738682f2328a6523d18be705ac9 (patch)
tree74d37b138efcd8293f03acee582aec6a819dd457 /src/ls.h
parent94a5a5a985ab0ce3d8ca72d4e5be28a71a1010e0 (diff)
song: stat file in song_file_update(), don't use isMusic()
isMusic() used to be a very inefficient function: with every invocation, it did another stat() on the specified file. There is only one caller, do the stat() there manually and use hasMusicSuffix() instead of isMusic().
Diffstat (limited to 'src/ls.h')
-rw-r--r--src/ls.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/ls.h b/src/ls.h
index fdc61bd8..0eed1fe1 100644
--- a/src/ls.h
+++ b/src/ls.h
@@ -40,9 +40,6 @@ int isDir(const char *utf8name);
struct decoder_plugin *hasMusicSuffix(const char *utf8file, unsigned int next);
-struct decoder_plugin *isMusic(const char *utf8file, time_t * mtime,
- unsigned int next);
-
int printRemoteUrlHandlers(struct client *client);
int isFile(const char *utf8file, time_t * mtime);