2006-08-28 [paul] 2.4.0cvs106
[claws.git] / src / mh.c
index d88d2f6..93df162 100644 (file)
--- a/src/mh.c
+++ b/src/mh.c
@@ -644,8 +644,6 @@ static gint mh_remove_msgs(Folder *folder, FolderItem *item,
 
        for (cur = msglist; cur; cur = cur->next) {
                MsgInfo *msginfo = (MsgInfo *)cur->data;
-               GTuples *tuples;
-               gint num;
                if (msginfo == NULL)
                        continue;
                if (MSG_IS_MOVE(msginfo->flags) && MSG_IS_MOVE_DONE(msginfo->flags)) {
@@ -659,13 +657,6 @@ static gint mh_remove_msgs(Folder *folder, FolderItem *item,
                        curnum++;
                }
 
-               if (relation) {
-                       tuples = g_relation_select(relation, msginfo, 0);
-                       num = GPOINTER_TO_INT(g_tuples_index(tuples, 0, 1));
-                       g_tuples_destroy(tuples);
-                       if (num <= 0)
-                               continue;
-               }
                file = g_strconcat(path, G_DIR_SEPARATOR_S, itos(msginfo->msgnum), NULL);
                if (file == NULL)
                        continue;