diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-07-31 18:04:20 +0200 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-09-15 16:08:50 +0200 |
commit | 631b9deefbef76c5f69b165f33cb46690c938c95 (patch) | |
tree | 7abbac52254d016d2228f3b8d320f3221fc8dc04 /src/shared/set.h | |
parent | d5099efc47d4e6ac60816b5381a5f607ab03f06e (diff) |
hashmap, set: remove unused functions
The following hashmap_* and set_* functions/macros have never had any
users in systemd's history:
*_iterate_backwards
*_iterate_skip
*_last
*_FOREACH_BACKWARDS
Remove this dead code.
Diffstat (limited to 'src/shared/set.h')
-rw-r--r-- | src/shared/set.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/shared/set.h b/src/shared/set.h index e650b7e3fe..840ee0a7e4 100644 --- a/src/shared/set.h +++ b/src/shared/set.h @@ -57,24 +57,18 @@ unsigned set_size(Set *s); bool set_isempty(Set *s); void *set_iterate(Set *s, Iterator *i); -void *set_iterate_backwards(Set *s, Iterator *i); -void *set_iterate_skip(Set *s, void *value, Iterator *i); void set_clear(Set *s); void set_clear_free(Set *s); void *set_steal_first(Set *s); void* set_first(Set *s); -void* set_last(Set *s); char **set_get_strv(Set *s); #define SET_FOREACH(e, s, i) \ for ((i) = ITERATOR_FIRST, (e) = set_iterate((s), &(i)); (e); (e) = set_iterate((s), &(i))) -#define SET_FOREACH_BACKWARDS(e, s, i) \ - for ((i) = ITERATOR_LAST, (e) = set_iterate_backwards((s), &(i)); (e); (e) = set_iterate_backwards((s), &(i))) - DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free); DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free_free); #define _cleanup_set_free_ _cleanup_(set_freep) |