mirror of
https://github.com/git/git.git
synced 2024-11-28 12:34:08 +08:00
environment.c: remove unused function
get_refs_directory() is not used anywhere. Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e449f10580
commit
78d0f5d210
1
cache.h
1
cache.h
@ -311,7 +311,6 @@ extern char *git_work_tree_cfg;
|
|||||||
extern int is_inside_work_tree(void);
|
extern int is_inside_work_tree(void);
|
||||||
extern const char *get_git_dir(void);
|
extern const char *get_git_dir(void);
|
||||||
extern char *get_object_directory(void);
|
extern char *get_object_directory(void);
|
||||||
extern char *get_refs_directory(void);
|
|
||||||
extern char *get_index_file(void);
|
extern char *get_index_file(void);
|
||||||
extern char *get_graft_file(void);
|
extern char *get_graft_file(void);
|
||||||
extern int set_git_dir(const char *path);
|
extern int set_git_dir(const char *path);
|
||||||
|
@ -129,13 +129,6 @@ char *get_object_directory(void)
|
|||||||
return git_object_dir;
|
return git_object_dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *get_refs_directory(void)
|
|
||||||
{
|
|
||||||
if (!git_refs_dir)
|
|
||||||
setup_git_env();
|
|
||||||
return git_refs_dir;
|
|
||||||
}
|
|
||||||
|
|
||||||
char *get_index_file(void)
|
char *get_index_file(void)
|
||||||
{
|
{
|
||||||
if (!git_index_file)
|
if (!git_index_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user