]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
install: drop unused function
authorDavid Tardon <dtardon@redhat.com>
Tue, 28 Mar 2023 07:41:56 +0000 (09:41 +0200)
committerDavid Tardon <dtardon@redhat.com>
Wed, 12 Apr 2023 15:09:41 +0000 (17:09 +0200)
src/shared/install.c
src/shared/install.h

index 832ddaddd640f315d645a356cee97a0555a9db88..7a00c59a479999daf184113aaee95e08a75da27e 100644 (file)
@@ -3619,10 +3619,6 @@ static UnitFileList* unit_file_list_free_one(UnitFileList *f) {
         return mfree(f);
 }
 
-Hashmap* unit_file_list_free(Hashmap *h) {
-        return hashmap_free_with_destructor(h, unit_file_list_free_one);
-}
-
 DEFINE_TRIVIAL_CLEANUP_FUNC(UnitFileList*, unit_file_list_free_one);
 
 DEFINE_HASH_OPS_WITH_VALUE_DESTRUCTOR(
index 9582fb210d9598bed70c0cd667d2e993c3e4e2a7..2067969f833cfa5c1271a590dbfaa3f5f2e7d881 100644 (file)
@@ -195,7 +195,7 @@ int unit_file_get_state(RuntimeScope scope, const char *root_dir, const char *fi
 int unit_file_exists(RuntimeScope scope, const LookupPaths *paths, const char *name);
 
 int unit_file_get_list(RuntimeScope scope, const char *root_dir, Hashmap *h, char **states, char **patterns);
-Hashmap* unit_file_list_free(Hashmap *h);
+
 extern const struct hash_ops unit_file_list_hash_ops_free;
 
 InstallChangeType install_changes_add(InstallChange **changes, size_t *n_changes, InstallChangeType type, const char *path, const char *source);