]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Remove unused settings_parser_apply_changes()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sun, 28 May 2023 21:59:42 +0000 (00:59 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Nov 2023 12:21:56 +0000 (14:21 +0200)
src/lib-settings/settings-parser.c
src/lib-settings/settings-parser.h

index 42e91e643fb35dece88619ee35684c68e2df39ef..5f50ef90a382d1fb4427f9ac748257662a3eeed8 100644 (file)
@@ -1475,14 +1475,6 @@ settings_apply(struct setting_link *dest_link,
        return 0;
 }
 
-int settings_parser_apply_changes(struct setting_parser_context *dest,
-                                 const struct setting_parser_context *src,
-                                 pool_t pool, const char **conflict_key_r)
-{
-       i_assert(src->root.info == dest->root.info);
-       return settings_apply(&dest->root, &src->root, pool, conflict_key_r);
-}
-
 const char *settings_section_escape(const char *name)
 {
 #define CHAR_NEED_ESCAPE(c) \
index 7cbf2c7e47b49cf2180a69332906f696d4a99241..658908e75a753893f9341f1e2a56885761bed277 100644 (file)
@@ -200,17 +200,6 @@ struct setting_parser_context *
 settings_parser_dup(const struct setting_parser_context *old_ctx,
                    pool_t new_pool);
 
-/* Copy changed settings from src to dest. If conflict_key_r is not NULL and
-   both src and dest have changed the same setting, return -1 and set the
-   key name. If it's NULL, the old setting is kept.
-
-   KLUDGE: For SET_STRLIST types if both source and destination have identical
-   keys, the duplicates in the source side are ignored. This is required to
-   make the current config code work correctly. */
-int settings_parser_apply_changes(struct setting_parser_context *dest,
-                                 const struct setting_parser_context *src,
-                                 pool_t pool, const char **conflict_key_r);
-
 /* Return section name escaped */
 const char *settings_section_escape(const char *name);