diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-06 13:29:17 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-06 13:29:17 +0200 |
commit | 8eb57ca535ea9a07c46d8d3bf3e824a4e678f535 (patch) | |
tree | 97089c161b2d149939a20e81edcc27ea59b47567 | |
parent | 5972f25cc2efd09afaab2f82bf236049285ba3e3 (diff) |
removed obsolete function pl_format_item_display_name
-rw-r--r-- | playlist.c | 15 | ||||
-rw-r--r-- | playlist.h | 3 | ||||
-rw-r--r-- | plugins.c | 1 |
3 files changed, 0 insertions, 19 deletions
@@ -1536,21 +1536,6 @@ pl_replace_meta (playItem_t *it, const char *key, const char *value) { UNLOCK; } -void -pl_format_item_display_name (playItem_t *it, char *str, int len) { - LOCK; - const char *artist = pl_find_meta (it, "artist"); - const char *title = pl_find_meta (it, "title"); - if (!artist) { - artist = "Unknown artist"; - } - if (!title) { - title = "Unknown title"; - } - snprintf (str, len, "%s - %s", artist, title); - UNLOCK; -} - const char * pl_find_meta (playItem_t *it, const char *key) { DB_metaInfo_t *m = it->meta; @@ -196,9 +196,6 @@ void pl_replace_meta (playItem_t *it, const char *key, const char *value); void -pl_format_item_display_name (playItem_t *it, char *str, int len); - -void pl_delete_all_meta (playItem_t *it); // returns index of 1st deleted item @@ -155,7 +155,6 @@ static DB_functions_t deadbeef_api = { .pl_get_next = (DB_playItem_t *(*) (DB_playItem_t *, int))pl_get_next, .pl_get_prev = (DB_playItem_t *(*) (DB_playItem_t *, int))pl_get_prev, .pl_format_title = (int (*) (DB_playItem_t *it, int idx, char *s, int size, int id, const char *fmt))pl_format_title, - .pl_format_item_display_name = (void (*) (DB_playItem_t *it, char *str, int len))pl_format_item_display_name, .pl_move_items = (void (*) (int iter, DB_playItem_t *drop_before, uint32_t *indexes, int count))pl_move_items, .pl_copy_items = (void (*) (int iter, int plt_from, DB_playItem_t *before, uint32_t *indices, int cnt))pl_copy_items, .pl_search_reset = pl_search_reset, |