Skip to content

Commit a1b23df

Browse files
committed
offmap: remove unused macro git_offmap_insert2
1 parent bff9b7a commit a1b23df

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/offmap.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,6 @@ typedef khash_t(off) git_offmap;
4545
kh_val(h, __pos) = val; \
4646
} } while (0)
4747

48-
#define git_offmap_insert2(h, key, val, oldv, rval) do { \
49-
khiter_t __pos = kh_put(off, h, key, &rval); \
50-
if (rval >= 0) { \
51-
if (rval == 0) { \
52-
oldv = kh_val(h, __pos); \
53-
kh_key(h, __pos) = key; \
54-
} else { oldv = NULL; } \
55-
kh_val(h, __pos) = val; \
56-
} } while (0)
57-
5848
#define git_offmap_delete(h, key) do { \
5949
khiter_t __pos = git_offmap_lookup_index(h, key); \
6050
if (git_offmap_valid_index(h, __pos)) \

0 commit comments

Comments
 (0)