From 3319e606336c13ba6475d83e700ca53537cedfd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Wed, 9 May 2012 22:24:34 +0200 Subject: xdiff: remove emit_func() and xdi_diff_hunks() The functions are unused now, remove them. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- xdiff/xdiff.h | 1 - xdiff/xdiffi.c | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'xdiff') diff --git a/xdiff/xdiff.h b/xdiff/xdiff.h index 33c010b1f1..219a3bbca6 100644 --- a/xdiff/xdiff.h +++ b/xdiff/xdiff.h @@ -96,7 +96,6 @@ typedef struct s_xdemitconf { unsigned long flags; find_func_t find_func; void *find_func_priv; - void (*emit_func)(); xdl_emit_hunk_consume_func_t hunk_func; } xdemitconf_t; diff --git a/xdiff/xdiffi.c b/xdiff/xdiffi.c index 4d671f4371..1b7012a119 100644 --- a/xdiff/xdiffi.c +++ b/xdiff/xdiffi.c @@ -557,11 +557,7 @@ int xdl_diff(mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp, xdemitconf_t const *xecfg, xdemitcb_t *ecb) { xdchange_t *xscr; xdfenv_t xe; - emit_func_t ef = xecfg->emit_func ? - (emit_func_t)xecfg->emit_func : xdl_emit_diff; - - if (xecfg->hunk_func) - ef = xdl_call_hunk_func; + emit_func_t ef = xecfg->hunk_func ? xdl_call_hunk_func : xdl_emit_diff; if (xdl_do_diff(mf1, mf2, xpp, &xe) < 0) { -- cgit v1.2.3