]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Remove unused settings_parser_get()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 4 Jan 2023 20:22:43 +0000 (22:22 +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 04b609304f89126831cc7402bcc0510060ef9505..cfb0f571452f19e57b23b167cdd74aca4e1dc9df 100644 (file)
@@ -256,13 +256,6 @@ void settings_parser_unref(struct setting_parser_context **_ctx)
        pool_unref(&ctx->parser_pool);
 }
 
-void *settings_parser_get(struct setting_parser_context *ctx)
-{
-       i_assert(ctx->root_count == 1);
-
-       return ctx->roots[0].set_struct;
-}
-
 void *settings_parser_get_root_set(const struct setting_parser_context *ctx,
                                   const struct setting_parser_info *root)
 {
index 234f22f8d1faac05707d385b72858c153ece13a4..a74348a7cabec7df7d80684016a2eaae9d6fe6e2 100644 (file)
@@ -132,8 +132,6 @@ settings_parser_init_list(pool_t set_pool,
 void settings_parser_ref(struct setting_parser_context *ctx);
 void settings_parser_unref(struct setting_parser_context **ctx);
 
-/* Return pointer to root setting structure. */
-void *settings_parser_get(struct setting_parser_context *ctx);
 /* Returns settings for a specific root. The root is expected to exist, and it
    must be the same pointer as given to settings_parser_init*(). If it doesn't,
    the function panics. */
@@ -143,7 +141,7 @@ void *settings_parser_get_root_set(const struct setting_parser_context *ctx,
 void *settings_parser_get_root_set_dup(const struct setting_parser_context *ctx,
                                       const struct setting_parser_info *root,
                                       pool_t pool);
-/* Like settings_parser_get(), but return change struct. */
+/* 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()). */
 const struct setting_parser_info *const *