]> git.ipfire.org Git - thirdparty/git.git/commit
xdiff: drop xpparam_t parameter from histogram cmp_recs()
authorJeff King <peff@peff.net>
Fri, 3 Dec 2021 05:11:40 +0000 (00:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 5 Dec 2021 07:27:53 +0000 (23:27 -0800)
commit25449450c0d07dfd490906c5114f67452aa18de8
tree7c5681cadffbedede3703df5ccc0d378d275c05c
parentcf0b26d90c93ce0a600ed094107b5f1a611750e9
xdiff: drop xpparam_t parameter from histogram cmp_recs()

Since 663c5ad035 (diff histogram: intern strings, 2021-11-17), our
cmp_recs() does not call xdl_recmatch(), and thus no longer needs an
xpparam_t struct from which to get the flags. We can drop the unused
parameter from the function, as well as the macro which wraps it.

There's no functional change here; it's just simplifying things (and
making -Wunused-parameter happier).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xhistogram.c