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.
This commit is contained in:
Max Kellermann
2008-08-29 09:38:33 +02:00
parent b731bbe93a
commit e5a7879892
4 changed files with 5 additions and 20 deletions

View File

@@ -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;