]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Remove unused settings_parser_get_list()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sat, 26 Feb 2022 22:39:19 +0000 (23:39 +0100)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 30 Nov 2022 12:39:58 +0000 (14:39 +0200)
src/lib-settings/settings-parser.c
src/lib-settings/settings-parser.h

index ef243d758654831c09b27fd9e19e10d2817c3eea..10ce4d8add50402d2a35582f70c1659ae46e1336 100644 (file)
@@ -252,17 +252,6 @@ void *settings_parser_get(struct setting_parser_context *ctx)
        return ctx->roots[0].set_struct;
 }
 
-void **settings_parser_get_list(const struct setting_parser_context *ctx)
-{
-       unsigned int i;
-       void **sets;
-
-       sets = t_new(void *, ctx->root_count + 1);
-       for (i = 0; i < ctx->root_count; i++)
-               sets[i] = ctx->roots[i].set_struct;
-       return sets;
-}
-
 void *settings_parser_get_root_set(const struct setting_parser_context *ctx,
                                   const struct setting_parser_info *root)
 {
index 5823e0940218583392cd79b0e906e108115e293d..c1db6785fe877c97f333aaa32a630c0d29d82875 100644 (file)
@@ -147,9 +147,6 @@ void settings_parser_deinit(struct setting_parser_context **ctx);
 
 /* Return pointer to root setting structure. */
 void *settings_parser_get(struct setting_parser_context *ctx);
-/* If there are multiple roots, return a NULL-terminated list to all of
-   their settings. */
-void **settings_parser_get_list(const 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. */