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

[PATCH] clean: remove unused variable buf

From
René Scharfe <l.s.r@web.de>
Date
May 19, 2015, 22:13 UTC
Message-ID
<555BB586.8050503@web.de>
It had never been used.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
---
 builtin/clean.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/builtin/clean.c b/builtin/clean.c
index 98c103f..a9eb772 100644
--- a/builtin/clean.c
+++ b/builtin/clean.c
@@ -314,7 +314,6 @@ static void print_highlight_menu_stuff(struct menu_stuff *stuff, int **chosen)
 {
 	struct string_list menu_list = STRING_LIST_INIT_DUP;
 	struct strbuf menu = STRBUF_INIT;
-	struct strbuf buf = STRBUF_INIT;
 	struct menu_item *menu_item;
 	struct string_list_item *string_list_item;
 	int i;
@@ -363,7 +362,6 @@ static void print_highlight_menu_stuff(struct menu_stuff *stuff, int **chosen)
 	pretty_print_menus(&menu_list);
 
 	strbuf_release(&menu);
-	strbuf_release(&buf);
 	string_list_clear(&menu_list, 0);
 }
 
-- 
2.4.1
Next: Jiang Xin
Message 1 of 2 in “clean: remove unused variable buf”
  1. clean: remove unused variable bufRené Scharfe, May 19, 2015
  2. Jiang XinMay 30, 2015

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.