Commit 8f5fe903d629309cf711bf3c7a0c8e9b6826b0a0

Patrick Steinhardt 2017-02-02T11:58:48

offmap: remove GIT__USE_OFFMAP macro

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(