summaryrefslogtreecommitdiff
path: root/xdiff/xhistogram.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-08-19 08:49:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-08-19 19:20:24 (GMT)
commitf1d019071ea68cb2bd2602b925d7a3726ded22e9 (patch)
tree5414a91709bc190c9d5501e80f219aa14920c816 /xdiff/xhistogram.c
parent795ea8776befc95ea2becd8020c7a284677b4161 (diff)
downloadgit-f1d019071ea68cb2bd2602b925d7a3726ded22e9.zip
git-f1d019071ea68cb2bd2602b925d7a3726ded22e9.tar.gz
git-f1d019071ea68cb2bd2602b925d7a3726ded22e9.tar.bz2
xdiff: drop unused mmfile parameters from xdl_do_histogram_diff()
These are no longer used since 9df0fc3d57 (xdiff: fix a memory leak, 2022-02-16), as the caller is expected to call xdl_prepare_env() itself. After that change the histogram code only examines the prepared xdfenv_t, not the original buffers. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff/xhistogram.c')
-rw-r--r--xdiff/xhistogram.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xdiff/xhistogram.c b/xdiff/xhistogram.c
index df90900..16a8fe2 100644
--- a/xdiff/xhistogram.c
+++ b/xdiff/xhistogram.c
@@ -362,8 +362,7 @@ out:
return result;
}
-int xdl_do_histogram_diff(mmfile_t *file1, mmfile_t *file2,
- xpparam_t const *xpp, xdfenv_t *env)
+int xdl_do_histogram_diff(xpparam_t const *xpp, xdfenv_t *env)
{
return histogram_diff(xpp, env,
env->xdf1.dstart + 1, env->xdf1.dend - env->xdf1.dstart + 1,