diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-01-25 14:12:13 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-02-17 11:41:06 +0100 |
commit | bff9b7a5a33c9aa8468d233676aba5dbad37b8d6 (patch) | |
tree | b62650c1e08fd3859489b829b7a3ff5fa71c9886 /src/strmap.h | |
parent | 021f4943a9482355c47122da4911c5272cefdb8d (diff) | |
download | libgit2-bff9b7a5a33c9aa8468d233676aba5dbad37b8d6.tar.gz |
strmap: remove unused macro `git_strmap_insert2`
Diffstat (limited to 'src/strmap.h')
-rw-r--r-- | src/strmap.h | 10 |
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)) \ |