Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sat, 18 Oct 2014 19:40:10 UTC Commit: 034ef6d79de3bf61907894674cc8efadfadd5bde https://github.com/geany/geany/commit/034ef6d79de3bf61907894674cc8efadfadd5b...
Log Message: ----------- 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.
Modified Paths: -------------- tagmanager/src/tm_tag.c tagmanager/src/tm_tag.h
Modified: tagmanager/src/tm_tag.c 10 lines changed, 0 insertions(+), 10 deletions(-) =================================================================== @@ -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
Modified: tagmanager/src/tm_tag.h 6 lines changed, 0 insertions(+), 6 deletions(-) =================================================================== @@ -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);
-#if 0 -void tm_tag_destroy(TMTag *tag); - -void tm_tag_free(gpointer tag); -#endif - void tm_tag_unref(TMTag *tag);
TMTag *tm_tag_ref(TMTag *tag);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).