diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2013-06-06 10:39:11 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2013-06-06 10:39:11 -0400 |
commit | afe76217f98b2fcb6d6e80bd732ba221c9bf7ae4 (patch) | |
tree | c906a9c99044aab15255d58798a1c570848cfa9a /src/libudev/hashmap.c | |
parent | 6f8f3edfe8dd70e24105d889f664ff033eb0555e (diff) |
Round 4 of remove unused functions from src/libudev/{hashmap,log,set,util}.c
We removed the following functions:
hashmap_merge
path_is_read_only_fs
set_free_free
set_free_freep
readlink_malloc
hexchar
unhexchar
octchar
unoctchar
format_timespan
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/hashmap.c')
-rw-r--r-- | src/libudev/hashmap.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/libudev/hashmap.c b/src/libudev/hashmap.c index 58702d7d59..c483fbad11 100644 --- a/src/libudev/hashmap.c +++ b/src/libudev/hashmap.c @@ -443,25 +443,6 @@ unsigned hashmap_size(Hashmap *h) { return h->n_entries; } -int hashmap_merge(Hashmap *h, Hashmap *other) { - struct hashmap_entry *e; - - assert(h); - - if (!other) - return 0; - - for (e = other->iterate_list_head; e; e = e->iterate_next) { - int r; - - if ((r = hashmap_put(h, e->key, e->value)) < 0) - if (r != -EEXIST) - return r; - } - - return 0; -} - char **hashmap_get_strv(Hashmap *h) { char **sv; Iterator it; |