Commit 3ce7f2ba authored by David Woodhouse's avatar David Woodhouse

Remove unread and total fields from camel_eas_store_summary

We don't need them any more
parent df299209
......@@ -638,10 +638,6 @@ eas_refresh_info_sync (CamelFolder *folder, EVO3(GCancellable *cancellable,) GEr
total = camel_folder_summary_count (folder->summary);
unread = folder->summary->unread_count;
camel_eas_store_summary_set_folder_total (eas_store->summary, priv->server_id, total);
camel_eas_store_summary_set_folder_unread (eas_store->summary, priv->server_id, unread);
camel_eas_store_summary_save (eas_store->summary, NULL);
camel_folder_summary_save_to_db (folder->summary, NULL);
} while (more_available);
......
......@@ -352,34 +352,6 @@ camel_eas_store_summary_set_parent_folder_id (CamelEasStoreSummary *eas_summary,
S_UNLOCK(eas_summary);
}
void
camel_eas_store_summary_set_folder_unread (CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
guint64 unread)
{
S_LOCK(eas_summary);
g_key_file_set_uint64 (eas_summary->priv->key_file, folder_id,
"UnRead", unread);
eas_summary->priv->dirty = TRUE;
S_UNLOCK(eas_summary);
}
void
camel_eas_store_summary_set_folder_total (CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
guint64 total)
{
S_LOCK(eas_summary);
g_key_file_set_uint64 (eas_summary->priv->key_file, folder_id,
"Total", total);
eas_summary->priv->dirty = TRUE;
S_UNLOCK(eas_summary);
}
void
camel_eas_store_summary_set_folder_type (CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
......@@ -461,40 +433,6 @@ camel_eas_store_summary_get_parent_folder_id (CamelEasStoreSummary *eas_summary,
return ret;
}
guint64
camel_eas_store_summary_get_folder_unread (CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
GError **error)
{
guint64 ret;
S_LOCK(eas_summary);
ret = g_key_file_get_uint64 (eas_summary->priv->key_file, folder_id,
"UnRead", error);
S_UNLOCK(eas_summary);
return ret;
}
guint64
camel_eas_store_summary_get_folder_total (CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
GError **error)
{
guint64 ret;
S_LOCK(eas_summary);
ret = g_key_file_get_uint64 (eas_summary->priv->key_file, folder_id,
"Total", error);
S_UNLOCK(eas_summary);
return ret;
}
guint64
camel_eas_store_summary_get_folder_type (CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
......
......@@ -82,14 +82,6 @@ void camel_eas_store_summary_set_parent_folder_id
(CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
const gchar *parent_id);
void camel_eas_store_summary_set_folder_unread
(CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
guint64 unread);
void camel_eas_store_summary_set_folder_total
(CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
guint64 total);
void camel_eas_store_summary_set_folder_type
(CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
......@@ -107,14 +99,6 @@ gchar * camel_eas_store_summary_get_parent_folder_id
(CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
GError **error);
guint64 camel_eas_store_summary_get_folder_unread
(CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
GError **error);
guint64 camel_eas_store_summary_get_folder_total
(CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
GError **error);
guint64 camel_eas_store_summary_get_folder_type
(CamelEasStoreSummary *eas_summary,
const gchar *folder_id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment