diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-01-27 14:15:45 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-02-17 11:41:06 +0100 |
commit | a1b23df58cb704a1ac3e0670a26c804d8a08ed2e (patch) | |
tree | 4e5f5b990316ae5fb21e576894f1fa90ddf1b37a | |
parent | bff9b7a5a33c9aa8468d233676aba5dbad37b8d6 (diff) | |
download | libgit2-a1b23df58cb704a1ac3e0670a26c804d8a08ed2e.tar.gz |
offmap: remove unused macro `git_offmap_insert2`
-rw-r--r-- | src/offmap.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/offmap.h b/src/offmap.h index 0d0e51272..4476cf772 100644 --- a/src/offmap.h +++ b/src/offmap.h @@ -45,16 +45,6 @@ typedef khash_t(off) git_offmap; kh_val(h, __pos) = val; \ } } while (0) -#define git_offmap_insert2(h, key, val, oldv, rval) do { \ - khiter_t __pos = kh_put(off, h, key, &rval); \ - if (rval >= 0) { \ - if (rval == 0) { \ - oldv = kh_val(h, __pos); \ - kh_key(h, __pos) = key; \ - } else { oldv = NULL; } \ - kh_val(h, __pos) = val; \ - } } while (0) - #define git_offmap_delete(h, key) do { \ khiter_t __pos = git_offmap_lookup_index(h, key); \ if (git_offmap_valid_index(h, __pos)) \ |