summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-01-25 14:12:13 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-17 11:41:06 +0100
commitbff9b7a5a33c9aa8468d233676aba5dbad37b8d6 (patch)
treeb62650c1e08fd3859489b829b7a3ff5fa71c9886
parent021f4943a9482355c47122da4911c5272cefdb8d (diff)
downloadlibgit2-bff9b7a5a33c9aa8468d233676aba5dbad37b8d6.tar.gz
strmap: remove unused macro `git_strmap_insert2`
-rw-r--r--src/strmap.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/strmap.h b/src/strmap.h
index 520984744..9fdab95bb 100644
--- a/src/strmap.h
+++ b/src/strmap.h
@@ -49,16 +49,6 @@ typedef khiter_t git_strmap_iter;
kh_val(h, __pos) = val; \
} } while (0)
-#define git_strmap_insert2(h, key, val, oldv, rval) do { \
- khiter_t __pos = kh_put(str, 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_strmap_delete(h, key) do { \
khiter_t __pos = git_strmap_lookup_index(h, key); \
if (git_strmap_valid_index(h, __pos)) \