Skip to content

Commit 685d34a

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d2bc62b commit 685d34a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

khash.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -324,14 +324,6 @@ static const double __ac_HASH_UPPER = 0.77;
324324
code; \
325325
} }
326326

327-
#define __kh_oid_cmp(a, b) (hashcmp(a, b) == 0)
328-
329-
KHASH_INIT(sha1, const unsigned char *, void *, 1, sha1hash, __kh_oid_cmp)
330-
typedef kh_sha1_t khash_sha1;
331-
332-
KHASH_INIT(sha1_pos, const unsigned char *, int, 1, sha1hash, __kh_oid_cmp)
333-
typedef kh_sha1_pos_t khash_sha1_pos;
334-
335327
static inline unsigned int oid_hash(struct object_id oid)
336328
{
337329
return sha1hash(oid.hash);

0 commit comments

Comments
 (0)