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>
Junio C Hamano committed
Jul 30, 2025 at 16:18 UTC
9b0781196a0fb7c7631b1fbaf5898e5f87a5f1bd
1 file changed
+5
t/helper/test-hashmap.c
+5
@@ -137,6 +137,11 @@ static void perf_hashmap(unsigned int method, unsigned int rounds)
137
* Read stdin line by line and print result of commands to stdout:
138
*
139
* perfhashmap method rounds -> test hashmap.[ch] performance
140
+ *
141
+ * NOTE: this is not used by any of our mechanized build & test
142
+ * procedure, after 3469a236 (t: port helper/test-hashmap.c to
143
+ * unit-tests/t-hashmap.c, 2024-08-03). See the log message of that
144
+ * commit for the reason why this is still here.
145
*/
146
int cmd__hashmap(int argc UNUSED, const char **argv UNUSED)
147
{