Skip to content

Commit 31f6b52

Browse files
committed
tree: remove unused function git_tree_entry_icmp
1 parent c103616 commit 31f6b52

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/tree.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,6 @@ int git_tree_entry_cmp(const git_tree_entry *e1, const git_tree_entry *e2)
7474
return entry_sort_cmp(e1, e2);
7575
}
7676

77-
int git_tree_entry_icmp(const git_tree_entry *e1, const git_tree_entry *e2)
78-
{
79-
return git_path_cmp(
80-
e1->filename, e1->filename_len, git_tree_entry__is_tree(e1),
81-
e2->filename, e2->filename_len, git_tree_entry__is_tree(e2),
82-
git__strncasecmp);
83-
}
84-
8577
/**
8678
* Allocate a new self-contained entry, with enough space after it to
8779
* store the filename and the id.

src/tree.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ GIT_INLINE(bool) git_tree_entry__is_tree(const struct git_tree_entry *e)
3939
return (S_ISDIR(e->attr) && !S_ISGITLINK(e->attr));
4040
}
4141

42-
extern int git_tree_entry_icmp(const git_tree_entry *e1, const git_tree_entry *e2);
43-
4442
void git_tree__free(void *tree);
4543
int git_tree__parse(void *tree, git_odb_object *obj);
4644

0 commit comments

Comments
 (0)