diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-06-16 14:33:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-16 14:33:47 -0700 |
commit | dfb67594e964e63f20546361597c06432c73779d (patch) | |
tree | 3ea858127e139ee620a010f4ba82aa95b9fca77c /builtin/clean.c | |
parent | 2cd8ebdd3d28359b7886d994e84a8725394935e7 (diff) | |
parent | 22570b68e3cb9380403d903680be3b3112a26490 (diff) | |
download | git-dfb67594e964e63f20546361597c06432c73779d.tar.gz git-dfb67594e964e63f20546361597c06432c73779d.tar.xz |
Merge branch 'rs/janitorial' into maint
Code clean-up.
* rs/janitorial:
dir: remove unused variable sb
clean: remove unused variable buf
use file_exists() to check if a file exists in the worktree
Diffstat (limited to 'builtin/clean.c')
-rw-r--r-- | builtin/clean.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/clean.c b/builtin/clean.c index ada0196c9..6dcb72e64 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); } |