Commit 3fc6beef authored by Max Kellermann's avatar Max Kellermann

locate: remove unused function locate_item_new()

parent 2ff35c8b
......@@ -64,19 +64,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)
{
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment