aboutsummaryrefslogtreecommitdiff
path: root/xdiff/xdiffi.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2012-05-09 22:24:34 +0200
committerJunio C Hamano <gitster@pobox.com>2012-05-09 14:08:42 -0700
commit3319e606336c13ba6475d83e700ca53537cedfd9 (patch)
treee7efe531ff5cbed7dc39c80f81cabc258f0ab823 /xdiff/xdiffi.c
parent4b4132fd89b248896d527dffd1ddfb7bbf375a45 (diff)
downloadgit-3319e606336c13ba6475d83e700ca53537cedfd9.tar.gz
git-3319e606336c13ba6475d83e700ca53537cedfd9.tar.xz
xdiff: remove emit_func() and xdi_diff_hunks()
The functions are unused now, remove them. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff/xdiffi.c')
-rw-r--r--xdiff/xdiffi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xdiff/xdiffi.c b/xdiff/xdiffi.c
index 4d671f437..1b7012a11 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) {