From 8f5fe903d629309cf711bf3c7a0c8e9b6826b0a0 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Thu, 2 Feb 2017 11:58:48 +0100 Subject: [PATCH] offmap: remove GIT__USE_OFFMAP macro --- src/offmap.c | 2 +- src/offmap.h | 3 --- src/pack.c | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/offmap.c b/src/offmap.c index 3f51f6e0c..023c9b417 100644 --- a/src/offmap.c +++ b/src/offmap.c @@ -7,7 +7,7 @@ #include "offmap.h" -GIT__USE_OFFMAP +__KHASH_IMPL(off, static kh_inline, git_off_t, void *, 1, kh_int64_hash_func, kh_int64_hash_equal) git_offmap *git_offmap_alloc(void) { diff --git a/src/offmap.h b/src/offmap.h index db79e485e..1f30cda6d 100644 --- a/src/offmap.h +++ b/src/offmap.h @@ -20,9 +20,6 @@ __KHASH_TYPE(off, git_off_t, void *) typedef khash_t(off) git_offmap; -#define GIT__USE_OFFMAP \ - __KHASH_IMPL(off, static kh_inline, git_off_t, void *, 1, kh_int64_hash_func, kh_int64_hash_equal) - git_offmap *git_offmap_alloc(void); #define git_offmap_free(h) git_offmap__free(h); (h) = NULL void git_offmap__free(git_offmap *map); diff --git a/src/pack.c b/src/pack.c index 9be051e64..d59fae412 100644 --- a/src/pack.c +++ b/src/pack.c @@ -16,8 +16,6 @@ #include -GIT__USE_OFFMAP - static int packfile_open(struct git_pack_file *p); static git_off_t nth_packed_object_offset(const struct git_pack_file *p, uint32_t n); static int packfile_unpack_compressed( -- 2.39.5