Mercurial > dovecot > core-2.2
changeset 9853:2765e7fb2202 HEAD
settings parser: Removed unused settings_parse_save_input().
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 02 Sep 2009 15:33:21 -0400 |
parents | 1bb29c3fad82 |
children | 649245b1552e |
files | src/lib-settings/settings-parser.c src/lib-settings/settings-parser.h |
diffstat | 2 files changed, 0 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-settings/settings-parser.c Tue Sep 01 23:13:04 2009 -0400 +++ b/src/lib-settings/settings-parser.c Wed Sep 02 15:33:21 2009 -0400 @@ -38,7 +38,6 @@ 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_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 @@ 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) {
--- a/src/lib-settings/settings-parser.h Tue Sep 01 23:13:04 2009 -0400 +++ b/src/lib-settings/settings-parser.h Wed Sep 02 15:33:21 2009 -0400 @@ -99,9 +99,6 @@ /* 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,