]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Remove unused mailbox_list_set_subscription_flags()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 25 Sep 2025 07:55:58 +0000 (10:55 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 30 Sep 2025 05:48:46 +0000 (05:48 +0000)
src/lib-storage/list/mailbox-list-subscriptions.c
src/lib-storage/list/mailbox-list-subscriptions.h

index 272d764ad241acb0189bc19a223beb7a89c7293a..96b4d0c674c4ba066c1d4b8043c9876ebd8d9a6a 100644 (file)
@@ -187,25 +187,6 @@ int mailbox_list_subscriptions_refresh(struct mailbox_list *src_list,
        return 0;
 }
 
-void mailbox_list_set_subscription_flags(struct mailbox_list *list,
-                                        const char *vname,
-                                        enum mailbox_info_flags *flags)
-{
-       struct mailbox_node *node;
-
-       *flags &= ENUM_NEGATE(MAILBOX_SUBSCRIBED | MAILBOX_CHILD_SUBSCRIBED);
-
-       node = mailbox_tree_lookup(list->subscriptions, vname);
-       if (node != NULL) {
-               *flags |= node->flags & MAILBOX_SUBSCRIBED;
-
-               /* the only reason why node might have a child is if one of
-                  them is subscribed */
-               if (node->children != NULL)
-                       *flags |= MAILBOX_CHILD_SUBSCRIBED;
-       }
-}
-
 void mailbox_list_subscriptions_fill(struct mailbox_list_iterate_context *ctx,
                                     struct mailbox_tree_context *tree)
 {
index ac33469080eaca61f79dc36d07bf1254989a328c..8149371858b7bc23391d7e915d5fbc94d1397413 100644 (file)
@@ -9,12 +9,6 @@ struct mailbox_list_iterate_context;
 int mailbox_list_subscriptions_refresh(struct mailbox_list *src_list,
                                       struct mailbox_list *dest_list);
 
-/* Set MAILBOX_SUBSCRIBED and MAILBOX_CHILD_SUBSCRIBED flags,
-   clearing them if they already are there when they shouldn't. */
-void mailbox_list_set_subscription_flags(struct mailbox_list *list,
-                                        const char *vname,
-                                        enum mailbox_info_flags *flags);
-
 /* Add subscriptions matching the iteration to the given tree */
 void mailbox_list_subscriptions_fill(struct mailbox_list_iterate_context *ctx,
                                     struct mailbox_tree_context *tree);