mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-20 20:23:26 +00:00
Remove duplicated sort
This commit is contained in:
parent
9d9e492dc0
commit
8f643ce8e3
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user