Commit 31f6b529 by Patrick Steinhardt

tree: remove unused function `git_tree_entry_icmp`

parent c103616f
...@@ -74,14 +74,6 @@ int git_tree_entry_cmp(const git_tree_entry *e1, const git_tree_entry *e2) ...@@ -74,14 +74,6 @@ int git_tree_entry_cmp(const git_tree_entry *e1, const git_tree_entry *e2)
return entry_sort_cmp(e1, e2); return entry_sort_cmp(e1, e2);
} }
int git_tree_entry_icmp(const git_tree_entry *e1, const git_tree_entry *e2)
{
return git_path_cmp(
e1->filename, e1->filename_len, git_tree_entry__is_tree(e1),
e2->filename, e2->filename_len, git_tree_entry__is_tree(e2),
git__strncasecmp);
}
/** /**
* Allocate a new self-contained entry, with enough space after it to * Allocate a new self-contained entry, with enough space after it to
* store the filename and the id. * store the filename and the id.
......
...@@ -39,8 +39,6 @@ GIT_INLINE(bool) git_tree_entry__is_tree(const struct git_tree_entry *e) ...@@ -39,8 +39,6 @@ GIT_INLINE(bool) git_tree_entry__is_tree(const struct git_tree_entry *e)
return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr)); return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr));
} }
extern int git_tree_entry_icmp(const git_tree_entry *e1, const git_tree_entry *e2);
void git_tree__free(void *tree); void git_tree__free(void *tree);
int git_tree__parse(void *tree, git_odb_object *obj); int git_tree__parse(void *tree, git_odb_object *obj);
......
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