From e5a7879892f12cb60fa2d2857b0e14d328a7d5ae Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2008 09:38:33 +0200 Subject: 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. --- src/tagTracker.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/tagTracker.c') 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; -- cgit v1.2.3