diff options
author | Jeff King <peff@peff.net> | 2024-08-20 07:18:19 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-20 17:33:18 +0200 |
commit | a6bcb3ca010ed47d26dfa5d5d221f91a46887c2f (patch) | |
tree | 854673cea11f5d4d64f5fc5e0651f7e7ec1cb9f9 /setup.c | |
parent | scalar: mark unused parameters in dummy function (diff) | |
download | git-a6bcb3ca010ed47d26dfa5d5d221f91a46887c2f.tar.xz git-a6bcb3ca010ed47d26dfa5d5d221f91a46887c2f.zip |
t-hashmap: stop calling setup() for t_intern() test
Commit f24a9b78a9 (t-hashmap: mark unused parameters in callback
function, 2024-08-17) noted that the t_intern() does not need its
hashmap parameter, but we have to keep it to conform to the function
pointer interface of setup().
But since the only thing setup() does is create and tear down the
hashmap, we can just skip calling setup() entirely for this case, and
drop the unused parameters. This simplifies the code a bit.
Helped-by: Ghanshyam Thakkar <shyamthakkar001@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'setup.c')
0 files changed, 0 insertions, 0 deletions