@@ -390,12 +390,9 @@ static xdchange_t *xdl_add_change(xdchange_t *xscr, long i1, long i2, long chg1,
390
390
}
391
391
392
392
393
- static int recs_match (xrecord_t * rec1 , xrecord_t * rec2 , long flags )
393
+ static int recs_match (xrecord_t * rec1 , xrecord_t * rec2 )
394
394
{
395
- return (rec1 -> ha == rec2 -> ha &&
396
- xdl_recmatch (rec1 -> ptr , rec1 -> size ,
397
- rec2 -> ptr , rec2 -> size ,
398
- flags ));
395
+ return (rec1 -> ha == rec2 -> ha );
399
396
}
400
397
401
398
/*
@@ -759,10 +756,10 @@ static inline int group_previous(xdfile_t *xdf, struct xdlgroup *g)
759
756
* following group, expand this group to include it. Return 0 on success or -1
760
757
* if g cannot be slid down.
761
758
*/
762
- static int group_slide_down (xdfile_t * xdf , struct xdlgroup * g , long flags )
759
+ static int group_slide_down (xdfile_t * xdf , struct xdlgroup * g )
763
760
{
764
761
if (g -> end < xdf -> nrec &&
765
- recs_match (xdf -> recs [g -> start ], xdf -> recs [g -> end ], flags )) {
762
+ recs_match (xdf -> recs [g -> start ], xdf -> recs [g -> end ])) {
766
763
xdf -> rchg [g -> start ++ ] = 0 ;
767
764
xdf -> rchg [g -> end ++ ] = 1 ;
768
765
@@ -780,10 +777,10 @@ static int group_slide_down(xdfile_t *xdf, struct xdlgroup *g, long flags)
780
777
* into a previous group, expand this group to include it. Return 0 on success
781
778
* or -1 if g cannot be slid up.
782
779
*/
783
- static int group_slide_up (xdfile_t * xdf , struct xdlgroup * g , long flags )
780
+ static int group_slide_up (xdfile_t * xdf , struct xdlgroup * g )
784
781
{
785
782
if (g -> start > 0 &&
786
- recs_match (xdf -> recs [g -> start - 1 ], xdf -> recs [g -> end - 1 ], flags )) {
783
+ recs_match (xdf -> recs [g -> start - 1 ], xdf -> recs [g -> end - 1 ])) {
787
784
xdf -> rchg [-- g -> start ] = 1 ;
788
785
xdf -> rchg [-- g -> end ] = 0 ;
789
786
@@ -833,7 +830,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
833
830
end_matching_other = -1 ;
834
831
835
832
/* Shift the group backward as much as possible: */
836
- while (!group_slide_up (xdf , & g , flags ))
833
+ while (!group_slide_up (xdf , & g ))
837
834
if (group_previous (xdfo , & go ))
838
835
BUG ("group sync broken sliding up" );
839
836
@@ -848,7 +845,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
848
845
849
846
/* Now shift the group forward as far as possible: */
850
847
while (1 ) {
851
- if (group_slide_down (xdf , & g , flags ))
848
+ if (group_slide_down (xdf , & g ))
852
849
break ;
853
850
if (group_next (xdfo , & go ))
854
851
BUG ("group sync broken sliding down" );
@@ -875,7 +872,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
875
872
* other file that it can align with.
876
873
*/
877
874
while (go .end == go .start ) {
878
- if (group_slide_up (xdf , & g , flags ))
875
+ if (group_slide_up (xdf , & g ))
879
876
BUG ("match disappeared" );
880
877
if (group_previous (xdfo , & go ))
881
878
BUG ("group sync broken sliding to match" );
@@ -918,7 +915,7 @@ int xdl_change_compact(xdfile_t *xdf, xdfile_t *xdfo, long flags) {
918
915
}
919
916
920
917
while (g .end > best_shift ) {
921
- if (group_slide_up (xdf , & g , flags ))
918
+ if (group_slide_up (xdf , & g ))
922
919
BUG ("best shift unreached" );
923
920
if (group_previous (xdfo , & go ))
924
921
BUG ("group sync broken sliding to blank line" );
0 commit comments