X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Fset.h;h=f8e86478cb83b905b8e26f4bd744114c95c325b7;hb=27e59415d0da0580569d6c48434ebc3c18c0d73c;hp=ae02f4fe2aaadc972551b8630f7f24e0f3fd8060;hpb=6917418372a990fbfe9a39864ccefacb37c70cc8;p=elogind.git diff --git a/src/basic/set.h b/src/basic/set.h index ae02f4fe2..f8e86478c 100644 --- a/src/basic/set.h +++ b/src/basic/set.h @@ -1,5 +1,3 @@ -/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ - #pragma once /*** @@ -27,7 +25,6 @@ Set *internal_set_new(const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS); #define set_new(ops) internal_set_new(ops HASHMAP_DEBUG_SRC_ARGS) - static inline Set *set_free(Set *s) { internal_hashmap_free(HASHMAP_BASE(s)); return NULL; @@ -65,8 +62,7 @@ static inline void *set_remove(Set *s, const void *key) { /* no set_remove2 */ /* no set_remove_value */ -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind int set_remove_and_put(Set *s, const void *old_key, const void *new_key); #endif // 0 /* no set_remove_and_replace */ @@ -127,8 +123,7 @@ static inline char **set_get_strv(Set *s) { int set_consume(Set *s, void *value); int set_put_strdup(Set *s, const char *p); -/// UNNEEDED by elogind -#if 0 +#if 0 /// UNNEEDED by elogind int set_put_strdupv(Set *s, char **l); #endif // 0