summaryrefslogtreecommitdiffstats
path: root/save-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-07 20:36:22 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-07 20:36:22 -0800
commit04382a1943de623b0caf2eedb5b611d5ec30b385 (patch)
tree15423f6ab4dee94669de37bf710fce8f092466b1 /save-git.c
parent37c1e8147ac96cb75f61a8bdf908db75af9037cb (diff)
downloadsubsurface-04382a1943de623b0caf2eedb5b611d5ec30b385.tar.gz
Remove unused parameter to tree_insert()
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-git.c')
-rw-r--r--save-git.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/save-git.c b/save-git.c
index 1ce96fb3e..836b8e0a1 100644
--- a/save-git.c
+++ b/save-git.c
@@ -376,8 +376,7 @@ struct dir {
char unique, name[1];
};
-static int tree_insert(git_repository *repo, git_treebuilder *dir,
- const char *name, int mkunique, git_oid *id, unsigned mode)
+static int tree_insert(git_treebuilder *dir, const char *name, int mkunique, git_oid *id, unsigned mode)
{
int ret;
struct membuffer uniquename = { 0 };
@@ -465,7 +464,7 @@ static int blob_insert(git_repository *repo, struct dir *tree, struct membuffer
return ret;
VA_BUF(&name, fmt);
- ret = tree_insert(repo, tree->files, mb_cstring(&name), 1, &blob_id, 0100644);
+ ret = tree_insert(tree->files, mb_cstring(&name), 1, &blob_id, 0100644);
free_buffer(&name);
return ret;
}
@@ -578,7 +577,7 @@ static int save_trip_description(git_repository *repo, struct dir *dir, dive_tri
free_buffer(&desc);
if (ret)
return report_error("trip blob creation failed");
- ret = tree_insert(repo, dir->files, "00-Trip", 0, &blob_id, 0100644);
+ ret = tree_insert(dir->files, "00-Trip", 0, &blob_id, 0100644);
if (ret)
return report_error("trip description tree insert failed");
return 0;
@@ -776,7 +775,7 @@ static int write_git_tree(git_repository *repo, struct dir *tree, git_oid *resul
git_oid id;
if (!write_git_tree(repo, subdir, &id))
- tree_insert(repo, tree->files, subdir->name, subdir->unique, &id, 040000);
+ tree_insert(tree->files, subdir->name, subdir->unique, &id, 040000);
tree->subdirs = subdir->sibling;
free(subdir);
};