]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Remove unnecessary prefixless_ns_unexpanded_set
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 15 Nov 2022 23:31:05 +0000 (01:31 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 30 Nov 2022 12:49:09 +0000 (14:49 +0200)
src/lib-storage/mail-namespace.c

index b6a8c83a99e4036746b38433c4fe3a36baf430a1..97954c1418bd81cf18156f106518e90d36cc8963 100644 (file)
@@ -11,7 +11,7 @@
 #include "mail-namespace.h"
 
 
-static struct mail_namespace_settings prefixless_ns_unexpanded_set = {
+static struct mail_namespace_settings prefixless_ns_set = {
        .name = "",
        .type = "private",
        .separator = "",
@@ -29,7 +29,6 @@ static struct mail_namespace_settings prefixless_ns_unexpanded_set = {
 
        .mailboxes = ARRAY_INIT
 };
-static struct mail_namespace_settings prefixless_ns_set;
 
 void mail_namespace_add_storage(struct mail_namespace *ns,
                                struct mail_storage *storage)
@@ -401,11 +400,6 @@ int mail_namespaces_init_finish(struct mail_namespace *namespaces,
                        prefixless_found = TRUE;
        }
        if (!prefixless_found) {
-               prefixless_ns_set = prefixless_ns_unexpanded_set;
-               /* a pretty evil way to expand the values */
-               prefixless_ns_set.prefix++;
-               prefixless_ns_set.location++;
-
                if (mail_namespaces_init_add(namespaces->user,
                                             &prefixless_ns_set,
                                             &ns, error_r) < 0)