@@ -700,7 +700,6 @@ static void diff_words_show(struct diff_words_data *diff_words)
700700{
701701 xpparam_t xpp ;
702702 xdemitconf_t xecfg ;
703- xdemitcb_t ecb ;
704703 mmfile_t minus , plus ;
705704
706705 /* special case: only removal */
@@ -722,7 +721,7 @@ static void diff_words_show(struct diff_words_data *diff_words)
722721 /* as only the hunk header will be parsed, we need a 0-context */
723722 xecfg .ctxlen = 0 ;
724723 xdi_diff_outf (& minus , & plus , fn_out_diff_words_aux , diff_words ,
725- & xpp , & xecfg , & ecb );
724+ & xpp , & xecfg );
726725 free (minus .ptr );
727726 free (plus .ptr );
728727 if (diff_words -> current_plus != diff_words -> plus .text .ptr +
@@ -1708,7 +1707,6 @@ static void builtin_diff(const char *name_a,
17081707 const char * diffopts = getenv ("GIT_DIFF_OPTS" );
17091708 xpparam_t xpp ;
17101709 xdemitconf_t xecfg ;
1711- xdemitcb_t ecb ;
17121710 struct emit_callback ecbdata ;
17131711 const struct userdiff_funcname * pe ;
17141712
@@ -1780,7 +1778,7 @@ static void builtin_diff(const char *name_a,
17801778 }
17811779 }
17821780 xdi_diff_outf (& mf1 , & mf2 , fn_out_consume , & ecbdata ,
1783- & xpp , & xecfg , & ecb );
1781+ & xpp , & xecfg );
17841782 if (DIFF_OPT_TST (o , COLOR_DIFF_WORDS ))
17851783 free_diff_words_data (& ecbdata );
17861784 if (textconv_one )
@@ -1833,13 +1831,12 @@ static void builtin_diffstat(const char *name_a, const char *name_b,
18331831 /* Crazy xdl interfaces.. */
18341832 xpparam_t xpp ;
18351833 xdemitconf_t xecfg ;
1836- xdemitcb_t ecb ;
18371834
18381835 memset (& xpp , 0 , sizeof (xpp ));
18391836 memset (& xecfg , 0 , sizeof (xecfg ));
18401837 xpp .flags = XDF_NEED_MINIMAL | o -> xdl_opts ;
18411838 xdi_diff_outf (& mf1 , & mf2 , diffstat_consume , diffstat ,
1842- & xpp , & xecfg , & ecb );
1839+ & xpp , & xecfg );
18431840 }
18441841
18451842 free_and_return :
@@ -1881,14 +1878,13 @@ static void builtin_checkdiff(const char *name_a, const char *name_b,
18811878 /* Crazy xdl interfaces.. */
18821879 xpparam_t xpp ;
18831880 xdemitconf_t xecfg ;
1884- xdemitcb_t ecb ;
18851881
18861882 memset (& xpp , 0 , sizeof (xpp ));
18871883 memset (& xecfg , 0 , sizeof (xecfg ));
18881884 xecfg .ctxlen = 1 ; /* at least one context line */
18891885 xpp .flags = XDF_NEED_MINIMAL ;
18901886 xdi_diff_outf (& mf1 , & mf2 , checkdiff_consume , & data ,
1891- & xpp , & xecfg , & ecb );
1887+ & xpp , & xecfg );
18921888
18931889 if (data .ws_rule & WS_BLANK_AT_EOF ) {
18941890 struct emit_callback ecbdata ;
@@ -3383,7 +3379,6 @@ static int diff_get_patch_id(struct diff_options *options, unsigned char *sha1)
33833379 for (i = 0 ; i < q -> nr ; i ++ ) {
33843380 xpparam_t xpp ;
33853381 xdemitconf_t xecfg ;
3386- xdemitcb_t ecb ;
33873382 mmfile_t mf1 , mf2 ;
33883383 struct diff_filepair * p = q -> queue [i ];
33893384 int len1 , len2 ;
@@ -3445,7 +3440,7 @@ static int diff_get_patch_id(struct diff_options *options, unsigned char *sha1)
34453440 xecfg .ctxlen = 3 ;
34463441 xecfg .flags = XDL_EMIT_FUNCNAMES ;
34473442 xdi_diff_outf (& mf1 , & mf2 , patch_id_consume , & data ,
3448- & xpp , & xecfg , & ecb );
3443+ & xpp , & xecfg );
34493444 }
34503445
34513446 git_SHA1_Final (sha1 , & ctx );
0 commit comments