Skip to content

Commit 1c9419a

Browse files
peffgitster
authored andcommitted
merge-ort: stop passing "opt" to read_oid_strbuf()
This function doesn't look at its merge_options parameter. It used to pass it down to err(), but that function no longer exists (and didn't look at "opt" anyway). We can drop it here. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 808e83f commit 1c9419a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

merge-ort.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3491,8 +3491,7 @@ static int sort_dirs_next_to_their_children(const char *one, const char *two)
34913491
return c1 - c2;
34923492
}
34933493

3494-
static int read_oid_strbuf(struct merge_options *opt,
3495-
const struct object_id *oid,
3494+
static int read_oid_strbuf(const struct object_id *oid,
34963495
struct strbuf *dst)
34973496
{
34983497
void *buf;
@@ -3527,8 +3526,8 @@ static int blob_unchanged(struct merge_options *opt,
35273526
if (oideq(&base->oid, &side->oid))
35283527
return 1;
35293528

3530-
if (read_oid_strbuf(opt, &base->oid, &basebuf) ||
3531-
read_oid_strbuf(opt, &side->oid, &sidebuf))
3529+
if (read_oid_strbuf(&base->oid, &basebuf) ||
3530+
read_oid_strbuf(&side->oid, &sidebuf))
35323531
goto error_return;
35333532
/*
35343533
* Note: binary | is used so that both renormalizations are

0 commit comments

Comments
 (0)