]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Removed SET_INTERNAL, it's unnecessary.
authorTimo Sirainen <tss@iki.fi>
Thu, 14 May 2009 22:52:01 +0000 (18:52 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 14 May 2009 22:52:01 +0000 (18:52 -0400)
--HG--
branch : HEAD

src/config/config-request.c
src/lib-settings/settings-parser.c
src/lib-settings/settings-parser.h
src/master/master-settings.c

index 954d62c190659528785d91175b3280cef1b6acb1..fe70dd58950120e9920a2a30acc0ad55be8df755 100644 (file)
@@ -89,8 +89,6 @@ static void settings_export(struct settings_export_context *ctx,
                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 ||
index bdb58828c75788f9433ff49656d50d3c8db24f9d..64b6cf1e07a4a31666d80c2fa1993b9947681a24 100644 (file)
@@ -174,7 +174,7 @@ setting_define_find(const struct setting_parser_info *info, const char *key)
        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_context *ctx, struct setting_link *link,
 
        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:
index 2b0e8631e1d9cdb24d55bc35537d6d5adbe2f512..5d6329ced8cb659c44c4206ca1de277c1107b2ce 100644 (file)
@@ -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,
index f51771fa518b7ea362cdcbc1c1f70de91d66a004..16de48c4c99b79045f42c374116b4b8c71e99b10 100644 (file)
@@ -87,7 +87,6 @@ static struct setting_parser_info inet_listener_setting_parser_info = {
        { 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),