ls: removed hasMusicSuffix() and get_archive_by_suffix()

Determine the suffix manually, and use decoder_plugin_from_suffix()
and archive_plugin_from_suffix() instead.

This way, song_file_update_inarchive() can be optimized: it does not
have to translate its path.
This commit is contained in:
Max Kellermann
2009-01-04 17:26:22 +01:00
parent d6b229e35c
commit ff72fff68d
4 changed files with 39 additions and 59 deletions
-6
View File
@@ -34,12 +34,6 @@ bool uri_has_scheme(const char *uri);
bool isRemoteUrl(const char *url);
const struct decoder_plugin *
hasMusicSuffix(const char *utf8file, unsigned int next);
const struct archive_plugin *
get_archive_by_suffix(const char *utf8file);
void printRemoteUrlHandlers(struct client *client);
#endif