Skip to content

Commit bff9b7a

Browse files
committed
strmap: remove unused macro git_strmap_insert2
1 parent 021f494 commit bff9b7a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/strmap.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,6 @@ typedef khiter_t git_strmap_iter;
4949
kh_val(h, __pos) = val; \
5050
} } while (0)
5151

52-
#define git_strmap_insert2(h, key, val, oldv, rval) do { \
53-
khiter_t __pos = kh_put(str, h, key, &rval); \
54-
if (rval >= 0) { \
55-
if (rval == 0) { \
56-
oldv = kh_val(h, __pos); \
57-
kh_key(h, __pos) = key; \
58-
} else { oldv = NULL; } \
59-
kh_val(h, __pos) = val; \
60-
} } while (0)
61-
6252
#define git_strmap_delete(h, key) do { \
6353
khiter_t __pos = git_strmap_lookup_index(h, key); \
6454
if (git_strmap_valid_index(h, __pos)) \

0 commit comments

Comments
 (0)