From 0d46e118269689e2a98e8011f52bb4bb0459421a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Aug 2012 23:27:08 +0200 Subject: locate: remove unused function locate_item_free() --- src/locate.c | 7 ------- src/locate.h | 4 ---- 2 files changed, 11 deletions(-) diff --git a/src/locate.c b/src/locate.c index 9645da9cd..d4b902538 100644 --- a/src/locate.c +++ b/src/locate.c @@ -115,13 +115,6 @@ locate_item_list_casefold(const struct locate_item_list *list) return new_list; } -void -locate_item_free(struct locate_item *item) -{ - g_free(item->needle); - g_free(item); -} - static bool locate_tag_search(const struct song *song, enum tag_type type, const char *str) { diff --git a/src/locate.h b/src/locate.h index ec20ded24..9ebb2c4ae 100644 --- a/src/locate.h +++ b/src/locate.h @@ -75,10 +75,6 @@ gcc_nonnull(1) void locate_item_list_free(struct locate_item_list *list); -gcc_nonnull(1) -void -locate_item_free(struct locate_item *item); - gcc_nonnull(1,2) bool locate_song_search(const struct song *song, -- cgit v1.2.3