@matheusbsbs / matheus-bagliano / commits / 185e865226
Fork 0

convert: drop unused crlf_action from check_global_conv_flags_eol()

The crlf_action parameter hasn't been used since a0ad53c181 (convert: Correct NNO tests and missing `LF will be replaced by CRLF`, 2016-08-13), where that part of the function was hoisted out to a separate will_convert_lf_to_crlf() helper. Let's drop the useless parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Sep 30, 2020 at 08:27 UTC 185e86522678fed077d6cec02381bcf899bf24e5
1 file changed +2 -2
convert.c
+2 -2
@@ -195,7 +195,7 @@ static enum eol output_eol(enum crlf_action crlf_action)
195 return core_eol;
196 }
197
198 -static void check_global_conv_flags_eol(const char *path, enum crlf_action crlf_action,
198 +static void check_global_conv_flags_eol(const char *path,
199 struct text_stat *old_stats, struct text_stat *new_stats,
200 int conv_flags)
201 {
@@ -547,7 +547,7 @@ static int crlf_to_git(const struct index_state *istate,
547 new_stats.crlf += new_stats.lonelf;
548 new_stats.lonelf = 0;
549 }
550 - check_global_conv_flags_eol(path, crlf_action, &stats, &new_stats, conv_flags);
550 + check_global_conv_flags_eol(path, &stats, &new_stats, conv_flags);
551 }
552 if (!convert_crlf_into_lf)
553 return 0;