]> git.ipfire.org Git - thirdparty/git.git/commit
verify_one_sparse(): drop unused parameters
authorJeff King <peff@peff.net>
Sat, 20 Aug 2022 09:02:48 +0000 (05:02 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 Aug 2022 21:14:17 +0000 (14:14 -0700)
commit5db8e59cf10bdf5b3a8d4b7cf5c20ee912c2a63a
treea20fd28cfff2e4c8421aa026c6570657b1e4d1bf
parent77651c032c39897ebeba88649d966a9f732facd3
verify_one_sparse(): drop unused parameters

This function has never used its repository or cache_tree parameters
since it was introduced in 9ad2d5ea71 (sparse-index: loose integration
with cache_tree_verify(), 2021-03-30).

As that commit notes, it may eventually be extended further, and that
might require looking at more data. But we can easily add them back if
necessary (and the repository is even included in the index_state these
days already). In the mean time, dropping them makes the code shorter
and appeases -Wunused-parameter.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache-tree.c