summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2023-03-22 13:42:51 -0400
committerJunio C Hamano <gitster@pobox.com>2023-03-22 15:37:09 -0700
commit65c756fff080e4798bbd1e3fa37263ed16c2d136 (patch)
treef3805ddf7542035e6991c59b7afb08daa6bbf963 /commit.c
parentaa548459a0d773cd53083d9f73228fef653ec124 (diff)
fast-export: drop data parameter from anonymous generators
The anonymization code has a specific generator callback for each type of data (e.g., one for paths, one for oids, and so on). These all take a "data" parameter, but none of them use it for anything. Which is not surprising, as the point is to generate a new name independent of any input, and each function keeps its own static counter. We added the extra pointer in d5bf91fde44 (fast-export: add a "data" callback parameter to anonymize_str(), 2020-06-23) to handle --anonymize-map parsing, but that turned out to be awkward itself, and was recently dropped. So let's get rid of this "data" parameter that nobody is using, both from the generators and from anonymize_str() which plumbed it through. This simplifies the code, and makes -Wunused-parameter happier. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions