Skip to content

Commit 2d4c4d9

Browse files
committed
set: drop unused set_free_free()
1 parent 828513e commit 2d4c4d9

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/basic/set.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ static inline Set* set_free(Set *s) {
1515
return (Set*) _hashmap_free(HASHMAP_BASE(s), NULL, NULL);
1616
}
1717

18-
static inline Set* set_free_free(Set *s) {
19-
return (Set*) _hashmap_free(HASHMAP_BASE(s), free, NULL);
20-
}
21-
22-
/* no set_free_free_free */
23-
2418
#define set_copy(s) ((Set*) _hashmap_copy(HASHMAP_BASE(s) HASHMAP_DEBUG_SRC_ARGS))
2519

2620
int _set_ensure_allocated(Set **s, const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS);
@@ -80,12 +74,6 @@ static inline void set_clear(Set *s) {
8074
_hashmap_clear(HASHMAP_BASE(s), NULL, NULL);
8175
}
8276

83-
static inline void set_clear_free(Set *s) {
84-
_hashmap_clear(HASHMAP_BASE(s), free, NULL);
85-
}
86-
87-
/* no set_clear_free_free */
88-
8977
static inline void *set_steal_first(Set *s) {
9078
return _hashmap_first_key_and_value(HASHMAP_BASE(s), true, NULL);
9179
}
@@ -145,10 +133,8 @@ int set_put_strsplit(Set *s, const char *v, const char *separators, ExtractFlags
145133
for (; ({ e = set_first(s); assert_se(!e || set_move_one(d, s, e) >= 0); e; }); )
146134

147135
DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free);
148-
DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free_free);
149136

150137
#define _cleanup_set_free_ _cleanup_(set_freep)
151-
#define _cleanup_set_free_free_ _cleanup_(set_free_freep)
152138

153139
int set_strjoin(Set *s, const char *separator, bool wrap_with_separator, char **ret);
154140

0 commit comments

Comments
 (0)