Remove unused function scope local variables
These variables were unused and can be removed safely: builtin-clone.c::cmd_clone(): use_local_hardlinks, use_separate_remote builtin-fetch-pack.c::find_common(): len builtin-remote.c::mv(): symref diff.c::show_stats():show_stats(): total diffcore-break.c::should_break(): base_size fast-import.c::validate_raw_date(): date, sign fsck.c::fsck_tree(): o_sha1, sha1 xdiff-interface.c::parse_num(): read_some Signed-off-by: Benjamin Kramer <benny.kra@googlemail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
36adb4abbd
commit
eb3a9dd327
@ -15,11 +15,10 @@ static int parse_num(char **cp_p, int *num_p)
|
||||
{
|
||||
char *cp = *cp_p;
|
||||
int num = 0;
|
||||
int read_some;
|
||||
|
||||
while ('0' <= *cp && *cp <= '9')
|
||||
num = num * 10 + *cp++ - '0';
|
||||
if (!(read_some = cp - *cp_p))
|
||||
if (!(cp - *cp_p))
|
||||
return -1;
|
||||
*cp_p = cp;
|
||||
*num_p = num;
|
||||
|
Reference in New Issue
Block a user