From: Timo Sirainen Date: Fri, 20 Jan 2023 20:25:27 +0000 (+0200) Subject: lib-storage: Remove unused mail_user_var_expand() X-Git-Tag: 2.4.0~2270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b55e8aa25331d2a5055a066fff9eaa5978dbb4b;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Remove unused mail_user_var_expand() --- diff --git a/src/lib-storage/mail-user.c b/src/lib-storage/mail-user.c index 67816e94aa..fd5d12ffc5 100644 --- a/src/lib-storage/mail-user.c +++ b/src/lib-storage/mail-user.c @@ -144,15 +144,6 @@ mail_user_expand_plugins_envs(struct mail_user *user, } } -int mail_user_var_expand(struct mail_user *user, - const struct setting_parser_info *info, void *set, - const char **error_r) -{ - return settings_var_expand_with_funcs(info, set, - user->pool, mail_user_var_expand_table(user), - mail_user_var_expand_func_table, user, error_r); -} - int mail_user_init(struct mail_user *user, const char **error_r) { const char *error; diff --git a/src/lib-storage/mail-user.h b/src/lib-storage/mail-user.h index a69c5d4d34..cfa7ddf816 100644 --- a/src/lib-storage/mail-user.h +++ b/src/lib-storage/mail-user.h @@ -143,11 +143,6 @@ void mail_user_set_vars(struct mail_user *user, const char *service, /* Return %variable expansion table for the user. */ const struct var_expand_table * mail_user_var_expand_table(struct mail_user *user); -/* Expand %variables for the user. The settings values may be allocated from - user->pool. Returns the same as settings_var_expand_with_funcs(). */ -int mail_user_var_expand(struct mail_user *user, - const struct setting_parser_info *info, void *set, - const char **error_r); /* Specify the user's home directory. This should be called also with home=NULL when it's known that the user doesn't have a home directory to avoid the