---
 src/locate.c |   13 -------------
 src/locate.h |    4 ----
 2 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/src/locate.c b/src/locate.c
index f0b0a26..7e99a24 100644
--- a/src/locate.c
+++ b/src/locate.c
@@ -63,19 +63,6 @@ locate_item_init(struct locate_item *item,
        return true;
 }
 
-struct locate_item *
-locate_item_new(const char *type_string, const char *needle)
-{
-       struct locate_item *ret = g_new(struct locate_item, 1);
-
-       if (!locate_item_init(ret, type_string, needle)) {
-               g_free(ret);
-               ret = NULL;
-       }
-
-       return ret;
-}
-
 void
 locate_item_list_free(struct locate_item_list *list)
 {
diff --git a/src/locate.h b/src/locate.h
index d0bdfa1..f9276b3 100644
--- a/src/locate.h
+++ b/src/locate.h
@@ -49,10 +49,6 @@ struct locate_item_list {
 int
 locate_parse_type(const char *str);
 
-/* returns NULL if not a known type */
-struct locate_item *
-locate_item_new(const char *type_string, const char *needle);
-
 /**
  * Allocates a new struct locate_item_list, and initializes all
  * members with zero bytes.
-- 
1.6.1.3


------------------------------------------------------------------------------
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to