summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2020-04-23 21:03:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-23 21:37:03 (GMT)
commitfe88f9f91ffcb7a4dbb83b17e0b62c12409a6047 (patch)
tree89286580ebcecf363cbd3c126ae7453c000d5205
parent0906ac2b54b69eb98c448ad0072be1a1c355fbc4 (diff)
downloadgit-fe88f9f91ffcb7a4dbb83b17e0b62c12409a6047.zip
git-fe88f9f91ffcb7a4dbb83b17e0b62c12409a6047.tar.gz
git-fe88f9f91ffcb7a4dbb83b17e0b62c12409a6047.tar.bz2
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--blame.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/blame.c b/blame.c
index 9fbf79e..da7e288 100644
--- a/blame.c
+++ b/blame.c
@@ -1263,7 +1263,6 @@ struct blame_bloom_data {
static int bloom_count_queries = 0;
static int bloom_count_no = 0;
static int maybe_changed_path(struct repository *r,
- struct commit *parent,
struct blame_origin *origin,
struct blame_bloom_data *bd)
{
@@ -1355,8 +1354,7 @@ static struct blame_origin *find_origin(struct repository *r,
if (origin->commit->parents &&
!oidcmp(&parent->object.oid,
&origin->commit->parents->item->object.oid))
- compute_diff = maybe_changed_path(r, parent,
- origin, bd);
+ compute_diff = maybe_changed_path(r, origin, bd);
if (compute_diff)
diff_tree_oid(get_commit_tree_oid(parent),