Skip to contentSkip to conversation

xdiff: remove unneeded declarations

PATCH In review Stefan Beller 2 participants 3 messages Sep 3, 2016 – Sep 7, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xdiff: remove unneeded declarations

---
 xdiff/xemit.c | 9 ---------
 1 file changed, 9 deletions(-)
xdiff/xemit.c +0 -9
index 49aa16f..b52b4b9 100644
@@ -22,15 +22,6 @@
 
 #include "xinclude.h"
 
-
-
-
-static long xdl_get_rec(xdfile_t *xdf, long ri, char const **rec);
-static int xdl_emit_record(xdfile_t *xdf, long ri, char const *pre, xdemitcb_t *ecb);
-
-
-
-
 static long xdl_get_rec(xdfile_t *xdf, long ri, char const **rec) {
 
 	*rec = xdf->recs[ri]->ptr;
Signature · 1 line
2.10.0.rc2.22.g25cb54d.dirty
#1 lore raw
Quoted 4 lines · Stefan Beller
---
 xdiff/xemit.c | 9 ---------
 1 file changed, 9 deletions(-)

Despite the moved coloring patch moving into a different direction, I think this is still
an improvement to the code.

Thanks,
Stefan

Quoted 24 lines
xdiff/xemit.c +0 -10
index 49aa16f..b52b4b9 100644
@@ -22,15 +22,6 @@
 
 #include "xinclude.h"
 
-
-
-
-static long xdl_get_rec(xdfile_t *xdf, long ri, char const **rec);
-static int xdl_emit_record(xdfile_t *xdf, long ri, char const *pre, xdemitcb_t *ecb);
-
-
-
-
 static long xdl_get_rec(xdfile_t *xdf, long ri, char const **rec) {
 
        *rec = xdf->recs[ri]->ptr;
--

2.10.0.rc2.22.g25cb54d.dirty

#2 lore raw
In reply to Stefan Beller
Quoted 15 lines · Stefan Beller
---
 xdiff/xemit.c | 9 ---------
 1 file changed, 9 deletions(-)
xdiff/xemit.c +0 -2
index 49aa16f..b52b4b9 100644
@@ -22,15 +22,6 @@
 
 #include "xinclude.h"
 
-
-

xdiff/xemit.c line 27

Quoted 10 lines
xdiff/xemit.c +0 -7
-
-static long xdl_get_rec(xdfile_t *xdf, long ri, char const **rec);
-static int xdl_emit_record(xdfile_t *xdf, long ri, char const *pre, xdemitcb_t *ecb);
-
-
-
-
 static long xdl_get_rec(xdfile_t *xdf, long ri, char const **rec) {
 
 	*rec = xdf->recs[ri]->ptr;

Thanks.