Remove the unused (and misleading) tm_tag_free()

It just calls unref() which might not actually free the tag if the refnum
is more than 1.
This commit is contained in:
Jiří Techet 2014-10-17 00:15:07 +02:00
parent 344eca0204
commit 034ef6d79d
2 changed files with 0 additions and 16 deletions

View File

@ -676,16 +676,6 @@ static void tm_tag_destroy(TMTag *tag)
} }
} }
#if 0
/*
Destroys all data in the tag and frees the tag structure as well.
@param tag Pointer to a TMTag structure
*/
void tm_tag_free(gpointer tag)
{
tm_tag_unref(tag);
}
#endif
/* /*
Drops a reference from a TMTag. If the reference count reaches 0, this function Drops a reference from a TMTag. If the reference count reaches 0, this function

View File

@ -198,12 +198,6 @@ TMTag **tm_tags_find(const GPtrArray *tags_array, const char *name,
void tm_tags_array_free(GPtrArray *tags_array, gboolean free_all); void tm_tags_array_free(GPtrArray *tags_array, gboolean free_all);
#if 0
void tm_tag_destroy(TMTag *tag);
void tm_tag_free(gpointer tag);
#endif
void tm_tag_unref(TMTag *tag); void tm_tag_unref(TMTag *tag);
TMTag *tm_tag_ref(TMTag *tag); TMTag *tm_tag_ref(TMTag *tag);