remove unused variable found in write_tree()
diff --git a/lib/repository.c b/lib/repository.c
index 04a5cf5..89c1db0 100644
--- a/lib/repository.c
+++ b/lib/repository.c
@@ -1236,7 +1236,6 @@ write_tree(struct got_object_id **new_tree_id, const char *path_dir,
struct got_tree_entry *new_te = NULL;
struct got_pathlist_head paths;
struct got_pathlist_entry *pe;
- char *name;
*new_tree_id = NULL;
@@ -1299,12 +1298,6 @@ write_tree(struct got_object_id **new_tree_id, const char *path_dir,
goto done;
}
- name = basename(path_dir);
- if (name == NULL) {
- err = got_error_from_errno("basename");
- goto done;
- }
-
err = got_object_tree_create(new_tree_id, &new_tree_entries, repo);
done:
if (dir)