diff options
| author | Edward Thomson <ethomson@github.com> | 2016-03-21 17:19:24 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@github.com> | 2016-03-24 15:59:49 -0400 |
| commit | 9eb9e5fa87667b823f73265c88a87f314d47aaf7 (patch) | |
| tree | b54b0c03de97dec5f6d63fd6816c2886cabd10f9 /src/iterator.h | |
| parent | d712c2b27f5589364dd0b602a3abc1dff31d54a0 (diff) | |
| download | libgit2-9eb9e5fa87667b823f73265c88a87f314d47aaf7.tar.gz | |
iterator: cleanups
Remove some unused functions, refactor some ugliness.
Diffstat (limited to 'src/iterator.h')
| -rw-r--r-- | src/iterator.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/iterator.h b/src/iterator.h index 51ba3f777..0b239a5bd 100644 --- a/src/iterator.h +++ b/src/iterator.h @@ -69,8 +69,6 @@ typedef struct { int (*advance_over)( const git_index_entry **, git_iterator_status_t *, git_iterator *); int (*reset)(git_iterator *); - int (*reset_range)(git_iterator *, const char *start, const char *end); - int (*at_end)(git_iterator *); void (*free)(git_iterator *); } git_iterator_callbacks; @@ -232,21 +230,8 @@ GIT_INLINE(int) git_iterator_reset(git_iterator *iter) * Go back to the start of the iteration after updating the `start` and * `end` pathname boundaries of the iteration. */ -GIT_INLINE(int) git_iterator_reset_range( - git_iterator *iter, const char *start, const char *end) -{ - return iter->cb->reset_range(iter, start, end); -} - -/** - * Check if the iterator is at the end - * - * @return 0 if not at end, >0 if at end - */ -GIT_INLINE(int) git_iterator_at_end(git_iterator *iter) -{ - return iter->cb->at_end(iter); -} +extern int git_iterator_reset_range( + git_iterator *iter, const char *start, const char *end); GIT_INLINE(git_iterator_type_t) git_iterator_type(git_iterator *iter) { @@ -273,7 +258,8 @@ GIT_INLINE(bool) git_iterator_ignore_case(git_iterator *iter) return ((iter->flags & GIT_ITERATOR_IGNORE_CASE) != 0); } -extern int git_iterator_set_ignore_case(git_iterator *iter, bool ignore_case); +extern void git_iterator_set_ignore_case( + git_iterator *iter, bool ignore_case); extern int git_iterator_current_tree_entry( const git_tree_entry **entry_out, git_iterator *iter); |
