@@ -197,7 +197,6 @@ static void drop_origin_blob(struct origin *o)
197
197
* scoreboard structure, sorted by the target line number.
198
198
*/
199
199
struct blame_entry {
200
- struct blame_entry * prev ;
201
200
struct blame_entry * next ;
202
201
203
202
/* the first line of this group in the final image;
@@ -282,8 +281,6 @@ static void coalesce(struct scoreboard *sb)
282
281
ent -> s_lno + ent -> num_lines == next -> s_lno ) {
283
282
ent -> num_lines += next -> num_lines ;
284
283
ent -> next = next -> next ;
285
- if (ent -> next )
286
- ent -> next -> prev = ent ;
287
284
origin_decref (next -> suspect );
288
285
free (next );
289
286
ent -> score = 0 ;
@@ -534,7 +531,7 @@ static void add_blame_entry(struct scoreboard *sb, struct blame_entry *e)
534
531
prev = ent ;
535
532
536
533
/* prev, if not NULL, is the last one that is below e */
537
- e -> prev = prev ;
534
+
538
535
if (prev ) {
539
536
e -> next = prev -> next ;
540
537
prev -> next = e ;
@@ -543,8 +540,6 @@ static void add_blame_entry(struct scoreboard *sb, struct blame_entry *e)
543
540
e -> next = sb -> ent ;
544
541
sb -> ent = e ;
545
542
}
546
- if (e -> next )
547
- e -> next -> prev = e ;
548
543
}
549
544
550
545
/*
@@ -555,14 +550,12 @@ static void add_blame_entry(struct scoreboard *sb, struct blame_entry *e)
555
550
*/
556
551
static void dup_entry (struct blame_entry * dst , struct blame_entry * src )
557
552
{
558
- struct blame_entry * p , * n ;
553
+ struct blame_entry * n ;
559
554
560
- p = dst -> prev ;
561
555
n = dst -> next ;
562
556
origin_incref (src -> suspect );
563
557
origin_decref (dst -> suspect );
564
558
memcpy (dst , src , sizeof (* src ));
565
- dst -> prev = p ;
566
559
dst -> next = n ;
567
560
dst -> score = 0 ;
568
561
}
@@ -2502,8 +2495,6 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
2502
2495
ent -> suspect = o ;
2503
2496
ent -> s_lno = bottom ;
2504
2497
ent -> next = next ;
2505
- if (next )
2506
- next -> prev = ent ;
2507
2498
origin_incref (o );
2508
2499
}
2509
2500
origin_decref (o );
0 commit comments