summaryrefslogtreecommitdiff
path: root/src/tree.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-03-22 00:18:44 -0400
committerEdward Thomson <ethomson@github.com>2016-03-22 06:21:13 -0700
commite2e4bae9a091152166773fb5681f2b3acb18b43b (patch)
tree08675b516edbab7506697e96e599cb79c7ff8e1d /src/tree.h
parent7adca53ed653802663096b8c2977a03dbe39c601 (diff)
downloadlibgit2-e2e4bae9a091152166773fb5681f2b3acb18b43b.tar.gz
tree: drop the now-unnecessary entries vector
Remove the now-unnecessary entries vector. Add `git_array_search` to binary search through an array to accomplish this.
Diffstat (limited to 'src/tree.h')
-rw-r--r--src/tree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tree.h b/src/tree.h
index a108d964c..5e7a66e04 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -24,8 +24,7 @@ struct git_tree_entry {
struct git_tree {
git_object object;
git_odb_object *odb_obj;
- git_array_t(git_tree_entry) entries_arr;
- git_vector entries;
+ git_array_t(git_tree_entry) entries;
};
struct git_treebuilder {