]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Remove unused settings_parser_get_root_set_dup()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 4 Jan 2023 20:35:02 +0000 (22:35 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Nov 2023 12:11:40 +0000 (14:11 +0200)
src/lib-settings/settings-parser.c
src/lib-settings/settings-parser.h

index cfb0f571452f19e57b23b167cdd74aca4e1dc9df..9fea4f08f8ad884a34bde310e9a6244ef4083d4d 100644 (file)
@@ -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);
index a74348a7cabec7df7d80684016a2eaae9d6fe6e2..94a2744bca445b68ce67f46cd71990e149811ee9 100644 (file)
@@ -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()). */