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

[PATCH] Remove unnecessary forward declaration of unpack_entry.

From
Shawn Pearce <spearce@spearce.org>
Date
Aug 21, 2006, 07:10 UTC
Message-ID
<20060821071036.GB26029@spearce.org>

This declaration probably used to be necessary but the code has been refactored since to use unpack_entry_gently instead.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 sha1_file.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/sha1_file.c b/sha1_file.c
index bb9fa8b..b1c88de 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -1075,9 +1075,6 @@ static int packed_object_info(struct pac
 	return 0;
 }
 
-/* forward declaration for a mutually recursive function */
-static void *unpack_entry(struct pack_entry *, char *, unsigned long *);
-
 static void *unpack_delta_entry(unsigned char *base_sha1,
 				unsigned long delta_size,
 				unsigned long left,
-- 
1.4.2.g0dcb
Message 1 of 1 in “Remove unnecessary forward declaration of unpack_entry.”
  1. Remove unnecessary forward declaration of unpack_entry.Shawn Pearce, Aug 21, 2006

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.