]> Kevux Git Server - rit/commit
hash: drop (mostly) unused `is_empty_{blob,tree}_sha1()` functions
authorPatrick Steinhardt <ps@pks.im>
Fri, 14 Jun 2024 06:49:45 +0000 (08:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2024 17:26:32 +0000 (10:26 -0700)
commit129cb1b99df46771889c6d432055be4edd2b81b9
tree76d79aac7c974374265195d9844cc21f9792c659
parent10aa7c74a26f5ce1502c2a31b844a34df9fc7124
hash: drop (mostly) unused `is_empty_{blob,tree}_sha1()` functions

The functions `is_empty_{blob,tree}_sha1()` are mostly unused, except
for a single callsite in "read-cache.c". Most callsites have long since
been converted to use the equivalents that accept a `struct object_id`
instead of a string.

Adapt the remaining callsite and drop those functions.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
hash.h
read-cache.c