test-hashmap: document why it is no longer used but still there

As I ended up wasting a few dozen minutes looking for the reason why
this is still here, help future developers by saving them from
wasting their time by documenting why this code that apparently is
not used by anybody is still here.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano 2025-07-30 16:18:16 -07:00
parent 16bd9f20a4
commit 9b0781196a

View File

@ -137,6 +137,11 @@ static void perf_hashmap(unsigned int method, unsigned int rounds)
* Read stdin line by line and print result of commands to stdout:
*
* perfhashmap method rounds -> test hashmap.[ch] performance
*
* NOTE: this is not used by any of our mechanized build & test
* procedure, after 3469a236 (t: port helper/test-hashmap.c to
* unit-tests/t-hashmap.c, 2024-08-03). See the log message of that
* commit for the reason why this is still here.
*/
int cmd__hashmap(int argc UNUSED, const char **argv UNUSED)
{