Skip to content

Commit 0ac5af5

Browse files
pcloudsgitster
authored andcommitted
repository.c: delete dead functions
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 357a03e commit 0ac5af5

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

repository.c

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,6 @@ void initialize_the_repository(void)
1515
repo_set_hash_algo(&the_repo, GIT_HASH_SHA1);
1616
}
1717

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-
4318
static void expand_base_dir(char **out, const char *in,
4419
const char *base_dir, const char *def_in)
4520
{

0 commit comments

Comments
 (0)