From e4ef3f03d9f01f92482fa9ac7ec18f54a6847c65 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 26 Jan 2020 10:39:48 -0800 Subject: Remove unused parameter in compute_alignment_score. Reported by Stan Marsh. --- autotab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotab.c b/autotab.c index 735a1ca..6ddc384 100644 --- a/autotab.c +++ b/autotab.c @@ -396,7 +396,7 @@ static int smatch(const char *str, const char *bag0, ...) return match; } -static long compute_alignment_score(line_t *lines, int tabsize, int shiftwidth) +static long compute_alignment_score(line_t *lines, int shiftwidth) { line_t *next; long lineno0, lineno1; @@ -690,7 +690,7 @@ static int determine_tabsize(line_t *lines) shiftwidth = determine_shiftwidth(lines_retabbed, tabsize, 1); - score = compute_alignment_score(lines_retabbed, tabsize, shiftwidth); + score = compute_alignment_score(lines_retabbed, shiftwidth); /* Scores for common tab sizes get a boost; 8 a bit more than 4. */ switch (tabsize) { -- cgit v1.2.3