]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
settings parser: Removed unused settings_parse_save_input().
authorTimo Sirainen <tss@iki.fi>
Wed, 2 Sep 2009 19:33:21 +0000 (15:33 -0400)
committerTimo Sirainen <tss@iki.fi>
Wed, 2 Sep 2009 19:33:21 +0000 (15:33 -0400)
--HG--
branch : HEAD

src/lib-settings/settings-parser.c
src/lib-settings/settings-parser.h

index 1720b0d48a5c394bc6f5d9ee2ebe90d23c9dcb1e..7ecf66d462a5026713b5c07858873a1ca5e47ee7 100644 (file)
@@ -38,7 +38,6 @@ struct setting_parser_context {
        struct setting_link *roots;
        unsigned int root_count;
        struct hash_table *links;
-       string_t *save_input_str;
 
        unsigned int linenum;
        const char *error;
@@ -499,15 +498,9 @@ int settings_parse_stream(struct setting_parser_context *ctx,
 int settings_parse_stream_read(struct setting_parser_context *ctx,
                               struct istream *input)
 {
-       const unsigned char *data;
-       size_t size;
        int ret;
 
        while ((ret = i_stream_read(input)) > 0) {
-               if (ctx->save_input_str != NULL) {
-                       data = i_stream_get_data(input, &size);
-                       str_append_n(ctx->save_input_str, data, size);
-               }
                if ((ret = settings_parse_stream(ctx, input)) < 0)
                        return -1;
                if (ret == 0) {
@@ -938,12 +931,6 @@ void *settings_dup(const struct setting_parser_info *info,
        return dest_set;
 }
 
-void settings_parse_save_input(struct setting_parser_context *ctx,
-                              string_t *dest)
-{
-       ctx->save_input_str = dest;
-}
-
 static void
 info_update_real(pool_t pool, const struct dynamic_settings_parser *parsers)
 {
index 5d6329ced8cb659c44c4206ca1de277c1107b2ce..9fe842c2477e9ab1b5a542b93de3ca095bd9e473 100644 (file)
@@ -99,9 +99,6 @@ const char *settings_parser_get_error(struct setting_parser_context *ctx);
 /* Return the parser info used for the previously parsed line. */
 const struct setting_parser_info *
 settings_parse_get_prev_info(struct setting_parser_context *ctx);
-/* Save all parsed input to given string. */
-void settings_parse_save_input(struct setting_parser_context *ctx,
-                              string_t *dest);
 
 /* Returns TRUE if the given key is a valid setting. */
 bool settings_parse_is_valid_key(struct setting_parser_context *ctx,