Skip to content

Commit 0542bb1

Browse files
committed
sequencer: remove todo_add_branch_context.commit
The 'commit' field in 'struct todo_add_branch_context' is unused. It's written to, but never read from. add_decorations_to_list() gets the commit passed to it explicitly as an argument. Signed-off-by: Abhinav Gupta <mail@abhinavg.net>
1 parent 94f0577 commit 0542bb1

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

sequencer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6409,7 +6409,6 @@ struct todo_add_branch_context {
64096409
size_t items_nr;
64106410
size_t items_alloc;
64116411
struct strbuf *buf;
6412-
struct commit *commit;
64136412
struct string_list refs_to_oids;
64146413
};
64156414

@@ -6498,7 +6497,6 @@ static int todo_list_add_update_ref_commands(struct todo_list *todo_list)
64986497
ctx.items[ctx.items_nr++] = todo_list->items[i++];
64996498

65006499
if (item->commit) {
6501-
ctx.commit = item->commit;
65026500
add_decorations_to_list(item->commit, &ctx);
65036501
}
65046502
}

0 commit comments

Comments
 (0)