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
@ -45,7 +45,7 @@ static int should_break(struct diff_filespec *src,
|
||||
* The value we return is 1 if we want the pair to be broken,
|
||||
* or 0 if we do not.
|
||||
*/
|
||||
unsigned long delta_size, base_size, max_size;
|
||||
unsigned long delta_size, max_size;
|
||||
unsigned long src_copied, literal_added, src_removed;
|
||||
|
||||
*merge_score_p = 0; /* assume no deletion --- "do not break"
|
||||
@ -64,7 +64,6 @@ static int should_break(struct diff_filespec *src,
|
||||
if (diff_populate_filespec(src, 0) || diff_populate_filespec(dst, 0))
|
||||
return 0; /* error but caught downstream */
|
||||
|
||||
base_size = ((src->size < dst->size) ? src->size : dst->size);
|
||||
max_size = ((src->size > dst->size) ? src->size : dst->size);
|
||||
if (max_size < MINIMUM_BREAK_SIZE)
|
||||
return 0; /* we do not break too small filepair */
|
||||
|
Reference in New Issue
Block a user