From e85b096b439306b95869c3ae10b6e6761cbf6eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 28 Nov 2017 12:36:35 +0100 Subject: machine-image: convert image_hashmap_free() to an static inline helper --- src/shared/machine-image.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/shared/machine-image.c') diff --git a/src/shared/machine-image.c b/src/shared/machine-image.c index 5b6260cbb8..66eefb3036 100644 --- a/src/shared/machine-image.c +++ b/src/shared/machine-image.c @@ -457,15 +457,6 @@ int image_discover(Hashmap *h) { return 0; } -void image_hashmap_free(Hashmap *map) { - Image *i; - - while ((i = hashmap_steal_first(map))) - image_unref(i); - - hashmap_free(map); -} - int image_remove(Image *i) { _cleanup_release_lock_file_ LockFile global_lock = LOCK_FILE_INIT, local_lock = LOCK_FILE_INIT; _cleanup_strv_free_ char **settings = NULL; -- cgit v1.2.1