Skip to content

Commit 7f7868e

Browse files
jrngitster
authored andcommitted
environment.c: remove unused variable
After v1.6.0-rc0~230^2^ (environment.c: remove unused function, 2008-06-19), git_refs_dir is not used any more. Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8695353 commit 7f7868e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

environment.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ char *git_work_tree_cfg;
6464
static char *work_tree;
6565

6666
static const char *git_dir;
67-
static char *git_object_dir, *git_index_file, *git_refs_dir, *git_graft_file;
67+
static char *git_object_dir, *git_index_file, *git_graft_file;
6868

6969
/*
7070
* Repository-local GIT_* environment variables
@@ -96,8 +96,6 @@ static void setup_git_env(void)
9696
git_object_dir = xmalloc(strlen(git_dir) + 9);
9797
sprintf(git_object_dir, "%s/objects", git_dir);
9898
}
99-
git_refs_dir = xmalloc(strlen(git_dir) + 6);
100-
sprintf(git_refs_dir, "%s/refs", git_dir);
10199
git_index_file = getenv(INDEX_ENVIRONMENT);
102100
if (!git_index_file) {
103101
git_index_file = xmalloc(strlen(git_dir) + 7);

0 commit comments

Comments
 (0)