]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Remove unused settings_parse_is_valid_key()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 7 Feb 2023 22:23:21 +0000 (00:23 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Nov 2023 12:20:55 +0000 (14:20 +0200)
src/lib-settings/settings-parser.c
src/lib-settings/settings-parser.h

index afc203586880a49428a22190ae283d05256d8922..6d193d9499d4f40995686a06d66544115c38ee89 100644 (file)
@@ -717,15 +717,6 @@ int settings_parse_keyvalue(struct setting_parser_context *ctx,
        return 1;
 }
 
-bool settings_parse_is_valid_key(struct setting_parser_context *ctx,
-                                const char *key)
-{
-       const struct setting_define *def;
-       struct setting_link *link;
-
-       return settings_find_key(ctx, key, &def, &link);
-}
-
 const char *settings_parse_unalias(struct setting_parser_context *ctx,
                                   const char *key)
 {
index c1b1f2d7a1bdc59faeae5b39cbbad0b0dff4e144..58071fcf1435d4eaf712766548fcf27bfcb2c6cf 100644 (file)
@@ -151,9 +151,6 @@ const char *settings_parser_get_error(struct setting_parser_context *ctx);
 const struct setting_parser_info *
 settings_parse_get_prev_info(struct setting_parser_context *ctx);
 
-/* Returns TRUE if the given key is a valid setting. */
-bool settings_parse_is_valid_key(struct setting_parser_context *ctx,
-                                const char *key);
 /* If key is an alias, return the primary key name. If key exists, return key
    itself. If key doesn't exist, return NULL. */
 const char *settings_parse_unalias(struct setting_parser_context *ctx,