repository.c: delete dead functions

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Mar 3, 2018 at 18:35 UTC 0ac5af59957cc46641a6083207c9a04c1a9fa9c8
1 file changed -25
repository.c
-25
@@ -15,31 +15,6 @@ void initialize_the_repository(void)
15 repo_set_hash_algo(&the_repo, GIT_HASH_SHA1);
16 }
17
18 -static char *git_path_from_env(const char *envvar, const char *git_dir,
19 - const char *path, int fromenv)
20 -{
21 - if (fromenv) {
22 - const char *value = getenv(envvar);
23 - if (value)
24 - return xstrdup(value);
25 - }
26 -
27 - return xstrfmt("%s/%s", git_dir, path);
28 -}
29 -
30 -static int find_common_dir(struct strbuf *sb, const char *gitdir, int fromenv)
31 -{
32 - if (fromenv) {
33 - const char *value = getenv(GIT_COMMON_DIR_ENVIRONMENT);
34 - if (value) {
35 - strbuf_addstr(sb, value);
36 - return 1;
37 - }
38 - }
39 -
40 - return get_common_dir_noenv(sb, gitdir);
41 -}
42 -
18 static void expand_base_dir(char **out, const char *in,
19 const char *base_dir, const char *def_in)
20 {