From db1f63463a50a41e381cbe1c05d1d4a47502344e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 26 Oct 2025 14:32:41 +0900 Subject: [PATCH] cryptsetup-util: sym_crypt_free() and friends are unused when libcryptsetup is disabled --- src/shared/cryptsetup-util.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/shared/cryptsetup-util.h b/src/shared/cryptsetup-util.h index 3840afac9a7..ce9782b7c4a 100644 --- a/src/shared/cryptsetup-util.h +++ b/src/shared/cryptsetup-util.h @@ -82,15 +82,6 @@ int cryptsetup_set_minimal_pbkdf(struct crypt_device *cd); int cryptsetup_get_token_as_json(struct crypt_device *cd, int idx, const char *verify_type, sd_json_variant **ret); int cryptsetup_add_token_json(struct crypt_device *cd, sd_json_variant *v); - -#else - -/* If libcryptsetup is not available, let's at least define the basic type and NOP destructors for it, to - * make a little bit less #ifdeferry necessary in main programs. */ -struct crypt_device; -static inline void sym_crypt_free(struct crypt_device* cd) {} -static inline void sym_crypt_freep(struct crypt_device** cd) {} - #endif int dlopen_cryptsetup(void); -- 2.47.3