]> git.ipfire.org Git - thirdparty/git.git/commitdiff
xdiff: drop CMP_ENV macro from xhistogram
authorJeff King <peff@peff.net>
Fri, 3 Dec 2021 05:11:15 +0000 (00:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 5 Dec 2021 07:27:53 +0000 (23:27 -0800)
This macro has been unused since 43ca7530df (xdiff/xhistogram: rely on
xdl_trim_ends(), 2011-08-01). The function that called it went away
there, and its use in the CMP() macro was inlined. It probably should
have been deleted then, but nobody noticed.

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

index 6c1c88a69a1c99672f2e6064abb1477cc1dac36e..399cc236d7b305559ca9542069927a4a29eedae3 100644 (file)
@@ -95,9 +95,6 @@ static int cmp_recs(xpparam_t const *xpp,
 
 }
 
-#define CMP_ENV(xpp, env, s1, l1, s2, l2) \
-       (cmp_recs(xpp, REC(env, s1, l1), REC(env, s2, l2)))
-
 #define CMP(i, s1, l1, s2, l2) \
        (cmp_recs(i->xpp, REC(i->env, s1, l1), REC(i->env, s2, l2)))