From f71ac4d479502738682f2328a6523d18be705ac9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 Oct 2008 16:56:00 +0200 Subject: 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(). --- src/ls.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/ls.h') diff --git a/src/ls.h b/src/ls.h index fdc61bd81..0eed1fe14 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); -- cgit v1.2.3