git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] environment.c: remove unused function

From
しらいしななこ <nanako3@lavabit.com>
Date
Jun 18, 2008, 23:21 UTC
Message-ID
<20080619082109.6117@nanako3.lavabit.com>
Removes get_refs_directory() that is not used anywhere.
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
---
 cache.h       |    1 -
 environment.c |    7 -------
 2 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/cache.h b/cache.h
index fdf07b7..64eba9d 100644
--- a/cache.h
+++ b/cache.h
@@ -311,7 +311,6 @@ extern char *git_work_tree_cfg;
 extern int is_inside_work_tree(void);
 extern const char *get_git_dir(void);
 extern char *get_object_directory(void);
-extern char *get_refs_directory(void);
 extern char *get_index_file(void);
 extern char *get_graft_file(void);
 extern int set_git_dir(const char *path);
diff --git a/environment.c b/environment.c
index 73feb2d..187248b 100644
--- a/environment.c
+++ b/environment.c
@@ -129,13 +129,6 @@ char *get_object_directory(void)
 	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)
 {
 	if (!git_index_file)
-- 
1.5.5.4
Message 1 of 1 in “environment.c: remove unused function”
  1. environment.c: remove unused functionしらいしななこ, Jun 18, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.