diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-06-01 12:45:15 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-01 12:45:15 -0700 |
commit | 4ba5bb5531c6ec64a57ae2754ba51ce477eebaf0 (patch) | |
tree | 7aa6825956056e5f88630a83a91aa085135c031d /dir.c | |
parent | f693bb0bb0d18d6150d6059dfad5018501a9713a (diff) | |
parent | 22570b68e3cb9380403d903680be3b3112a26490 (diff) | |
download | git-4ba5bb5531c6ec64a57ae2754ba51ce477eebaf0.tar.gz |
Merge branch 'rs/janitorial'
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 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -401,7 +401,6 @@ int report_path_error(const char *ps_matched, /* * Make sure all pathspec matched; otherwise it is an error. */ - struct strbuf sb = STRBUF_INIT; int num, errors = 0; for (num = 0; num < pathspec->nr; num++) { int other, found_dup; @@ -433,7 +432,6 @@ int report_path_error(const char *ps_matched, pathspec->items[num].original); errors++; } - strbuf_release(&sb); return errors; } |