diff options
author | Luc Bertrand <grumpy@cacou.net> | 2011-08-03 13:44:28 +0200 |
---|---|---|
committer | Luc Bertrand <grumpy@cacou.net> | 2011-08-03 13:44:28 +0200 |
commit | 8f643ce8e3ec02afa1f145fa820e10a825a4c603 (patch) | |
tree | 12eb776d2ad25fb1e8fb320b13707532e249701b | |
parent | 9d9e492dc0e61468d1914a449f080a75ee171b4b (diff) | |
download | libgit2-8f643ce8e3ec02afa1f145fa820e10a825a4c603.tar.gz |
Remove duplicated sort
-rw-r--r-- | src/status.c | 1 | ||||
-rw-r--r-- | src/tree.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/status.c b/src/status.c index 50810a057..d9613c129 100644 --- a/src/status.c +++ b/src/status.c @@ -61,7 +61,6 @@ static int status_srch(const void *key, const void *array_member) static int find_status_entry(git_vector *entries, const char *path) { - git_vector_sort(entries); return git_vector_bsearch2(entries, status_srch, path); } diff --git a/src/tree.c b/src/tree.c index 8e370667d..d993d549a 100644 --- a/src/tree.c +++ b/src/tree.c @@ -426,7 +426,6 @@ static git_tree_entry *treebuilder_get(git_treebuilder *bld, const char *filenam if (build_ksearch(&ksearch, filename) < GIT_SUCCESS) return NULL; - sort_entries(bld); idx = git_vector_bsearch2(&bld->entries, entry_search_cmp, &ksearch); if (idx == GIT_ENOTFOUND) return NULL; |