summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-02-02 11:58:48 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-17 11:41:06 +0100
commit8f5fe903d629309cf711bf3c7a0c8e9b6826b0a0 (patch)
tree7443f2c8eadd4d68e80241775f8a47eac97516ac
parentcf6124d68b8a7a2b98e7191fa4c4a5a149c09420 (diff)
downloadlibgit2-8f5fe903d629309cf711bf3c7a0c8e9b6826b0a0.tar.gz
offmap: remove GIT__USE_OFFMAP macro
-rw-r--r--src/offmap.c2
-rw-r--r--src/offmap.h3
-rw-r--r--src/pack.c2
3 files changed, 1 insertions, 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 <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(