aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagTracker.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:38:33 +0200
committerMax Kellermann <max@duempel.org>2008-08-29 09:38:33 +0200
commite5a7879892f12cb60fa2d2857b0e14d328a7d5ae (patch)
tree6b5ee152733367e1751765d00a3c90919e52b130 /src/tagTracker.c
parentb731bbe93abd48e745d72958be0c253ade7a9d08 (diff)
downloadmpd-e5a7879892f12cb60fa2d2857b0e14d328a7d5ae.tar.gz
mpd-e5a7879892f12cb60fa2d2857b0e14d328a7d5ae.tar.xz
mpd-e5a7879892f12cb60fa2d2857b0e14d328a7d5ae.zip
tag: converted tag_item.value to a char array
The value is stored in the same memory allocation as the tag_item struct; this saves memory because we do not store the value pointer anymore. Also remove the getTagItemString()/removeTagItemString() dummies.
Diffstat (limited to '')
-rw-r--r--src/tagTracker.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/tagTracker.c b/src/tagTracker.c
index af94db1c1..e6dc6fbe6 100644
--- a/src/tagTracker.c
+++ b/src/tagTracker.c
@@ -37,16 +37,6 @@ struct visited {
static struct visited *visited_heads[TAG_NUM_OF_ITEM_TYPES];
static unsigned num_visited[TAG_NUM_OF_ITEM_TYPES];
-char *getTagItemString(int type mpd_unused, char *string)
-{
- return xstrdup(string);
-}
-
-void removeTagItemString(int type mpd_unused, char *string)
-{
- free(string);
-}
-
static int visit_tag_items(int fd mpd_unused, Song *song, void *data)
{
enum tag_type type = (enum tag_type)(size_t)data;