Remove Update folder function.
authorSrinivasa Ragavan <sragavan@novell.com>
Tue, 29 Jul 2008 06:42:15 +0000 (06:42 +0000)
committerSrinivasa Ragavan <sragavan@src.gnome.org>
Tue, 29 Jul 2008 06:42:15 +0000 (06:42 +0000)
2008-07-29  Srinivasa Ragavan  <sragavan@novell.com>

* camel/camel-folder.c: Remove Update folder function.

svn path=/trunk/; revision=9218

camel/ChangeLog
camel/camel-folder.c

index e418643..5927a8f 100644 (file)
@@ -1,3 +1,7 @@
+2008-07-29  Srinivasa Ragavan  <sragavan@novell.com>
+
+       * camel/camel-folder.c: Remove Update folder function.
+
 2008-07-28  Srinivasa Ragavan  <sragavan@novell.com>
 
        * camel/camel-digest-folder.c: Fix uid/pstring issues.
index 1feda1a..b6303e1 100644 (file)
@@ -699,43 +699,6 @@ append_message (CamelFolder *folder, CamelMimeMessage *message,
 
 }
 
-static void
-update_summary (CamelMessageInfoBase *info)
-{
-       int unread=0, deleted=0, junk=0;
-       guint32 flags = info->flags;
-
-       d(printf("Updating summary of %s\n", info->summary->folder->full_name));
-       if (flags & CAMEL_MESSAGE_SEEN)
-               unread = 1;
-       
-       if (flags & CAMEL_MESSAGE_DELETED)
-               deleted = 1;
-
-       if (flags & CAMEL_MESSAGE_JUNK)
-               junk = 1;
-       
-       info->flags |= CAMEL_MESSAGE_FOLDER_FLAGGED;
-       info->dirty = TRUE;
-
-       if (info->summary) {
-               camel_folder_summary_touch(info->summary);
-
-               if (unread)
-                       info->summary->unread_count += unread;
-               if (deleted)
-                       info->summary->deleted_count += deleted;
-               if (junk)
-                       info->summary->junk_count += junk;
-               if (junk && !deleted)
-                       info->summary->junk_not_deleted_count += junk;
-               if (junk ||  deleted) 
-                       info->summary->visible_count -= junk ? junk : deleted;
-               info->summary->saved_count++;
-
-       }
-}
-
 /**
  * camel_folder_append_message:
  * @folder: a #CamelFolder object