Commit bff9b7a5a33c9aa8468d233676aba5dbad37b8d6

Patrick Steinhardt 2017-01-25T14:12:13

strmap: remove unused macro `git_strmap_insert2`

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/strmap.h b/src/strmap.h
index 5209847..9fdab95 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)) \