dovecot-2.0: Removed SET_INTERNAL, it's unnecessary.

dovecot at dovecot.org dovecot at dovecot.org
Fri May 15 01:53:00 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/11e974e40f7b
changeset: 9281:11e974e40f7b
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 14 18:52:01 2009 -0400
description:
Removed SET_INTERNAL, it's unnecessary.

diffstat:

4 files changed, 1 insertion(+), 7 deletions(-)
src/config/config-request.c        |    2 --
src/lib-settings/settings-parser.c |    4 +---
src/lib-settings/settings-parser.h |    1 -
src/master/master-settings.c       |    1 -

diffs (55 lines):

diff -r 8e7809057f85 -r 11e974e40f7b src/config/config-request.c
--- a/src/config/config-request.c	Thu May 14 18:51:17 2009 -0400
+++ b/src/config/config-request.c	Thu May 14 18:52:01 2009 -0400
@@ -89,8 +89,6 @@ static void settings_export(struct setti
 		count = 0;
 		str_truncate(ctx->value, 0);
 		switch (def->type) {
-		case SET_INTERNAL:
-			break;
 		case SET_BOOL: {
 			const bool *val = value, *dval = default_value;
 			if (ctx->export_defaults ||
diff -r 8e7809057f85 -r 11e974e40f7b src/lib-settings/settings-parser.c
--- a/src/lib-settings/settings-parser.c	Thu May 14 18:51:17 2009 -0400
+++ b/src/lib-settings/settings-parser.c	Thu May 14 18:52:01 2009 -0400
@@ -174,7 +174,7 @@ setting_define_find(const struct setting
 	const struct setting_define *list;
 
 	for (list = info->defines; list->key != NULL; list++) {
-		if (strcmp(list->key, key) == 0 && list->type != SET_INTERNAL)
+		if (strcmp(list->key, key) == 0)
 			return list;
 	}
 	return NULL;
@@ -304,8 +304,6 @@ settings_parse(struct setting_parser_con
 
 	ptr = STRUCT_MEMBER_P(link->set_struct, def->offset);
 	switch (def->type) {
-	case SET_INTERNAL:
-		i_unreached();
 	case SET_BOOL:
 		return get_bool(ctx, value, (bool *)ptr);
 	case SET_UINT:
diff -r 8e7809057f85 -r 11e974e40f7b src/lib-settings/settings-parser.h
--- a/src/lib-settings/settings-parser.h	Thu May 14 18:51:17 2009 -0400
+++ b/src/lib-settings/settings-parser.h	Thu May 14 18:52:01 2009 -0400
@@ -17,7 +17,6 @@ struct var_expand_table;
 #define SETTING_STREAM_LF_CHAR "\003"
 
 enum setting_type {
-	SET_INTERNAL, /* don't set this variable */
 	SET_BOOL,
 	SET_UINT,
 	SET_STR,
diff -r 8e7809057f85 -r 11e974e40f7b src/master/master-settings.c
--- a/src/master/master-settings.c	Thu May 14 18:51:17 2009 -0400
+++ b/src/master/master-settings.c	Thu May 14 18:52:01 2009 -0400
@@ -87,7 +87,6 @@ static struct setting_parser_info inet_l
 	{ SET_DEFLIST, name, offsetof(struct service_settings, field), defines }
 
 static struct setting_define service_setting_defines[] = {
-	DEF(SET_INTERNAL, master_set),
 	DEF(SET_STR, name),
 	DEF(SET_STR, type),
 	DEF(SET_STR, executable),


More information about the dovecot-cvs mailing list