From: Timo Sirainen Date: Wed, 4 Jan 2023 20:35:02 +0000 (+0200) Subject: lib-settings: Remove unused settings_parser_get_root_set_dup() X-Git-Tag: 2.4.0~2353 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9898d8f8d72681777de2d187ffdace3823e30e01;p=thirdparty%2Fdovecot%2Fcore.git lib-settings: Remove unused settings_parser_get_root_set_dup() --- diff --git a/src/lib-settings/settings-parser.c b/src/lib-settings/settings-parser.c index cfb0f57145..9fea4f08f8 100644 --- a/src/lib-settings/settings-parser.c +++ b/src/lib-settings/settings-parser.c @@ -266,13 +266,6 @@ void *settings_parser_get_root_set(const struct setting_parser_context *ctx, i_panic("Couldn't find settings for root %s", root->module_name); } -void *settings_parser_get_root_set_dup(const struct setting_parser_context *ctx, - const struct setting_parser_info *root, - pool_t pool) -{ - return settings_dup(root, settings_parser_get_root_set(ctx, root), pool); -} - void *settings_parser_get_changes(struct setting_parser_context *ctx) { i_assert(ctx->root_count == 1); diff --git a/src/lib-settings/settings-parser.h b/src/lib-settings/settings-parser.h index a74348a7ca..94a2744bca 100644 --- a/src/lib-settings/settings-parser.h +++ b/src/lib-settings/settings-parser.h @@ -137,10 +137,6 @@ void settings_parser_unref(struct setting_parser_context **ctx); the function panics. */ void *settings_parser_get_root_set(const struct setting_parser_context *ctx, const struct setting_parser_info *root); -/* Combine settings_parser_get_root_set() and settings_dup(). */ -void *settings_parser_get_root_set_dup(const struct setting_parser_context *ctx, - const struct setting_parser_info *root, - pool_t pool); /* Return pointer to changes in the root setting structure. */ void *settings_parser_get_changes(struct setting_parser_context *ctx); /* Returns the setting parser's roots (same as given to init()). */