khash: drop sha1-specific map types

All of the callers of khash_sha1 and khash_sha1_pos have been removed,
in favor of using maps that use "struct object_id" as their keys. Let's
drop these now-obsolete types.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Jeff King 2019-06-20 03:41:38 -04:00 committed by Junio C Hamano
parent d2bc62b1fa
commit 685d34a96e
1 changed files with 0 additions and 8 deletions

View File

@ -324,14 +324,6 @@ static const double __ac_HASH_UPPER = 0.77;
code; \
} }

#define __kh_oid_cmp(a, b) (hashcmp(a, b) == 0)

KHASH_INIT(sha1, const unsigned char *, void *, 1, sha1hash, __kh_oid_cmp)
typedef kh_sha1_t khash_sha1;

KHASH_INIT(sha1_pos, const unsigned char *, int, 1, sha1hash, __kh_oid_cmp)
typedef kh_sha1_pos_t khash_sha1_pos;

static inline unsigned int oid_hash(struct object_id oid)
{
return sha1hash(oid.hash);