Commit 8f5fe903 by Patrick Steinhardt

offmap: remove GIT__USE_OFFMAP macro

parent cf6124d6
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "offmap.h" #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) git_offmap *git_offmap_alloc(void)
{ {
......
...@@ -20,9 +20,6 @@ ...@@ -20,9 +20,6 @@
__KHASH_TYPE(off, git_off_t, void *) __KHASH_TYPE(off, git_off_t, void *)
typedef khash_t(off) git_offmap; 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); git_offmap *git_offmap_alloc(void);
#define git_offmap_free(h) git_offmap__free(h); (h) = NULL #define git_offmap_free(h) git_offmap__free(h); (h) = NULL
void git_offmap__free(git_offmap *map); void git_offmap__free(git_offmap *map);
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
#include <zlib.h> #include <zlib.h>
GIT__USE_OFFMAP
static int packfile_open(struct git_pack_file *p); 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 git_off_t nth_packed_object_offset(const struct git_pack_file *p, uint32_t n);
static int packfile_unpack_compressed( static int packfile_unpack_compressed(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment