summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-06 13:29:17 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-06 13:29:17 +0200
commit8eb57ca535ea9a07c46d8d3bf3e824a4e678f535 (patch)
tree97089c161b2d149939a20e81edcc27ea59b47567
parent5972f25cc2efd09afaab2f82bf236049285ba3e3 (diff)
removed obsolete function pl_format_item_display_name
-rw-r--r--playlist.c15
-rw-r--r--playlist.h3
-rw-r--r--plugins.c1
3 files changed, 0 insertions, 19 deletions
diff --git a/playlist.c b/playlist.c
index abaa4d7d..ccc4646c 100644
--- a/playlist.c
+++ b/playlist.c
@@ -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;
diff --git a/playlist.h b/playlist.h
index b6c8403f..26655f5f 100644
--- a/playlist.h
+++ b/playlist.h
@@ -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
diff --git a/plugins.c b/plugins.c
index 53e5ecf4..03246303 100644
--- a/plugins.c
+++ b/plugins.c
@@ -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,