0.9.10claws59
authorChristoph Hohmann <reboot@gmx.ch>
Tue, 11 May 2004 15:03:34 +0000 (15:03 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Tue, 11 May 2004 15:03:34 +0000 (15:03 +0000)
* src/inc.[ch]
        remove unused folderview update stuff from inc.[ch]

ChangeLog.claws
configure.ac
src/inc.c
src/inc.h

index 287dbfa..ce0ff53 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-11 [christoph] 0.9.10claws59
+
+       * src/inc.[ch]
+               remove unused folderview update stuff from inc.[ch]
+
 2004-05-11 [paul]      0.9.10claws58
 
        * sync with 0.9.10cvs11
index e845179..8f38eae 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=10
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=58
+EXTRA_VERSION=59
 
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
index 9f541bb..9fb2979 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -105,15 +105,9 @@ static void inc_progress_dialog_set_progress
                                        (IncProgressDialog      *inc_dialog,
                                         IncSession             *inc_session);
 
-static void inc_update_folderview      (IncProgressDialog      *inc_dialog,
-                                        IncSession             *inc_session);
-
 static void inc_progress_dialog_update_periodic
                                        (IncProgressDialog      *inc_dialog,
                                         IncSession             *inc_session);
-static void inc_update_folderview_periodic
-                                       (IncProgressDialog      *inc_dialog,
-                                        IncSession             *inc_session);
 
 static gint inc_recv_data_progressive  (Session        *session,
                                         guint           cur_len,
@@ -471,9 +465,6 @@ static IncSession *inc_session_new(PrefsAccount *account)
        session_set_recv_data_notify(session->session,
                                     inc_recv_data_finished, session);
 
-       session->folder_table = g_hash_table_new(NULL, NULL);
-       session->tmp_folder_table = g_hash_table_new(NULL, NULL);
-
        return session;
 }
 
@@ -482,8 +473,6 @@ static void inc_session_destroy(IncSession *session)
        g_return_if_fail(session != NULL);
 
        session_destroy(session->session);
-       g_hash_table_destroy(session->folder_table);
-       g_hash_table_destroy(session->tmp_folder_table);
        g_free(session);
 }
 
@@ -929,17 +918,6 @@ static gboolean hash_remove_func(gpointer key, gpointer value, gpointer data)
        return TRUE;
 }
 
-static void inc_update_folderview(IncProgressDialog *inc_dialog,
-                                 IncSession *inc_session)
-{
-       if (g_hash_table_size(inc_session->tmp_folder_table) > 0) {
-               folderview_update_item_foreach(inc_session->tmp_folder_table,
-                                              FALSE);
-               g_hash_table_foreach_remove(inc_session->tmp_folder_table,
-                                           hash_remove_func, NULL);
-       }
-}
-
 static void inc_progress_dialog_update_periodic(IncProgressDialog *inc_dialog,
                                                IncSession *inc_session)
 {
@@ -964,30 +942,6 @@ static void inc_progress_dialog_update_periodic(IncProgressDialog *inc_dialog,
        }
 }
 
-static void inc_update_folderview_periodic(IncProgressDialog *inc_dialog,
-                                          IncSession *inc_session)
-{
-       struct timeval tv_cur;
-       struct timeval tv_result;
-       gint msec;
-
-       gettimeofday(&tv_cur, NULL);
-
-       tv_result.tv_sec = tv_cur.tv_sec - inc_dialog->folder_tv.tv_sec;
-       tv_result.tv_usec = tv_cur.tv_usec - inc_dialog->folder_tv.tv_usec;
-       if (tv_result.tv_usec < 0) {
-               tv_result.tv_sec--;
-               tv_result.tv_usec += 1000000;
-       }
-
-       msec = tv_result.tv_sec * 1000 + tv_result.tv_usec / 1000;
-       if (msec > FOLDER_UPDATE_INTERVAL) {
-               inc_update_folderview(inc_dialog, inc_session);
-               inc_dialog->folder_tv.tv_sec = tv_cur.tv_sec;
-               inc_dialog->folder_tv.tv_usec = tv_cur.tv_usec;
-       }
-}
-
 static gint inc_recv_data_progressive(Session *session, guint cur_len,
                                      guint total_len, gpointer data)
 {
@@ -1012,7 +966,6 @@ static gint inc_recv_data_progressive(Session *session, guint cur_len,
 
        inc_dialog = (IncProgressDialog *)inc_session->data;
        inc_progress_dialog_update_periodic(inc_dialog, inc_session);
-       inc_update_folderview_periodic(inc_dialog, inc_session);
 
        return 0;
 }
@@ -1030,7 +983,6 @@ static gint inc_recv_data_finished(Session *session, guint len, gpointer data)
 
        if (POP3_SESSION(session)->state == POP3_LOGOUT) {
                inc_progress_dialog_update(inc_dialog, inc_session);
-               inc_update_folderview(inc_dialog, inc_session);
        }
 
        return 0;
@@ -1060,7 +1012,6 @@ static gint inc_recv_message(Session *session, const gchar *msg, gpointer data)
                break;
        case POP3_LOGOUT:
                inc_progress_dialog_update(inc_dialog, inc_session);
-               inc_update_folderview(inc_dialog, inc_session);
                break;
        default:
                break;
index 9672330..1d46882 100644 (file)
--- a/src/inc.h
+++ b/src/inc.h
@@ -71,9 +71,6 @@ struct _IncSession
        Session *session;
        IncState inc_state;
 
-       GHashTable *folder_table;       /* table of destination folders */
-       GHashTable *tmp_folder_table;   /* for progressive update */
-
        gint cur_total_bytes;
 
        gpointer data;