Skip to content

Commit fe88f9f

Browse files
peffgitster
authored andcommitted
blame: drop unused parameter from maybe_changed_path
We don't use the "parent" parameter at all (probably because the bloom filter for a commit is always defined against a single parent anyway). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0906ac2 commit fe88f9f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

blame.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,6 @@ struct blame_bloom_data {
12631263
static int bloom_count_queries = 0;
12641264
static int bloom_count_no = 0;
12651265
static int maybe_changed_path(struct repository *r,
1266-
struct commit *parent,
12671266
struct blame_origin *origin,
12681267
struct blame_bloom_data *bd)
12691268
{
@@ -1355,8 +1354,7 @@ static struct blame_origin *find_origin(struct repository *r,
13551354
if (origin->commit->parents &&
13561355
!oidcmp(&parent->object.oid,
13571356
&origin->commit->parents->item->object.oid))
1358-
compute_diff = maybe_changed_path(r, parent,
1359-
origin, bd);
1357+
compute_diff = maybe_changed_path(r, origin, bd);
13601358

13611359
if (compute_diff)
13621360
diff_tree_oid(get_commit_tree_oid(parent),

0 commit comments

Comments
 (0)