]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Removed recently added wrong code.
authorTimo Sirainen <tss@iki.fi>
Tue, 13 May 2008 02:18:56 +0000 (05:18 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 13 May 2008 02:18:56 +0000 (05:18 +0300)
--HG--
branch : HEAD

src/imap/imap-thread-finish.c

index 89dc9288916349495df507e7b842a44fe1f64a35..f10f05821c42e5dc673e115e589e3b2d4ce82105 100644 (file)
@@ -539,7 +539,7 @@ static int send_root(struct thread_finish_context *ctx, string_t *str,
 static int send_roots(struct thread_finish_context *ctx)
 {
        const struct mail_thread_root_node *roots;
-       unsigned int i, count, child_count;
+       unsigned int i, count;
        string_t *str;
        int ret = 0;
 
@@ -547,29 +547,11 @@ static int send_roots(struct thread_finish_context *ctx)
        str_append(str, "* THREAD ");
 
        roots = array_get(&ctx->roots, &count);
-       /* see if we have only one child */
-       for (i = 0, child_count = 0; i < count && child_count < 2; i++) {
-               if (!roots[i].ignore)
-                       child_count++;
-       }
-       if (child_count == 1) {
-               for (i = 0; i < count; i++) {
-                       if (!roots[i].ignore) {
-                               if (!roots[i].dummy)
-                                       str_append_c(str, '(');
-                               ret = send_root(ctx, str, &roots[i]);
-                               if (!roots[i].dummy)
-                                       str_append_c(str, ')');
-                               break;
-                       }
-               }
-       } else {
-               for (i = 0; i < count && ret == 0; i++) {
-                       if (!roots[i].ignore) {
-                               str_append_c(str, '(');
-                               ret = send_root(ctx, str, &roots[i]);
-                               str_append_c(str, ')');
-                       }
+       for (i = 0; i < count && ret == 0; i++) {
+               if (!roots[i].ignore) {
+                       str_append_c(str, '(');
+                       ret = send_root(ctx, str, &roots[i]);
+                       str_append_c(str, ')');
                }
        }