aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagTracker.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:38:33 +0200
committerEric Wong <normalperson@yhbt.net>2008-09-02 00:19:57 -0700
commitb24dbaef8dc73ccff85ae3948ff508c1cab4ede9 (patch)
treefa1a97e6b2a9fb663850385e9a6a59b1a048218b /src/tagTracker.c
parent62f527a609d14890886580fe453a9219ae0a2bf7 (diff)
downloadmpd-b24dbaef8dc73ccff85ae3948ff508c1cab4ede9.tar.gz
mpd-b24dbaef8dc73ccff85ae3948ff508c1cab4ede9.tar.xz
mpd-b24dbaef8dc73ccff85ae3948ff508c1cab4ede9.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 'src/tagTracker.c')
-rw-r--r--src/tagTracker.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/tagTracker.c b/src/tagTracker.c
index fdc535823..bea58ae4c 100644
--- a/src/tagTracker.c
+++ b/src/tagTracker.c
@@ -38,16 +38,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;