diff options
author | Patrick Steinhardt <ps@pks.im> | 2018-11-21 12:07:23 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2018-11-28 15:22:27 +0100 |
commit | b2af13f291c0971c9953fd6fc2f633ac25d6b13b (patch) | |
tree | eb8f53e2f93aef1589c30ffa6ea13072d660eb2c | |
parent | bbf9f5a78e42da9a7382c685dfa821589a7c6485 (diff) | |
download | libgit2-b2af13f291c0971c9953fd6fc2f633ac25d6b13b.tar.gz |
iterator: remove unused function `tree_iterator_entry_cmp`
The function `tree_iterator_entry_cmp` has been introduced in commit be30387e8
(iterators: refactored tree iterator, 2016-02-25), but in fact it has never been
used at all. Remove it to avoid unused function warnings as soon as we re-enable
"-Wunused-functions".
-rw-r--r-- | src/iterator.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/iterator.c b/src/iterator.c index 40f675957..dc7cfc7ad 100644 --- a/src/iterator.c +++ b/src/iterator.c @@ -478,14 +478,6 @@ GIT_INLINE(int) tree_entry_cmp( icase ? git__strncasecmp : git__strncmp); } -GIT_INLINE(int) tree_iterator_entry_cmp(const void *ptr_a, const void *ptr_b) -{ - const tree_iterator_entry *a = (const tree_iterator_entry *)ptr_a; - const tree_iterator_entry *b = (const tree_iterator_entry *)ptr_b; - - return tree_entry_cmp(a->tree_entry, b->tree_entry, false); -} - GIT_INLINE(int) tree_iterator_entry_cmp_icase( const void *ptr_a, const void *ptr_b) { |