offmap: remove GIT__USE_OFFMAP macro
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
diff --git a/src/offmap.c b/src/offmap.c
index 3f51f6e..023c9b4 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 db79e48..1f30cda 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 9be051e..d59fae4 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -16,8 +16,6 @@
#include <zlib.h>
-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(