]> git.ipfire.org Git - thirdparty/git.git/blobdiff - cache-tree.c
Git 2.19.1
[thirdparty/git.git] / cache-tree.c
index 181d5919f0fd4d8e838684cd14adafc8fa31ab71..16ea022c46d3b281d04a3956f865d8a886a5b714 100644 (file)
@@ -652,11 +652,6 @@ out:
        return ret;
 }
 
-int write_cache_as_tree(struct object_id *oid, int flags, const char *prefix)
-{
-       return write_index_as_tree(oid, &the_index, get_index_file(), flags, prefix);
-}
-
 static void prime_cache_tree_rec(struct cache_tree *it, struct tree *tree)
 {
        struct tree_desc desc;
@@ -723,10 +718,3 @@ int cache_tree_matches_traversal(struct cache_tree *root,
                return it->entry_count;
        return 0;
 }
-
-int update_main_cache_tree(int flags)
-{
-       if (!the_index.cache_tree)
-               the_index.cache_tree = cache_tree();
-       return cache_tree_update(&the_index, flags);
-}