[evolution-mapi] Remove redundant method implementations.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Remove redundant method implementations.
- Date: Sat, 7 Jul 2012 03:03:31 +0000 (UTC)
commit b24c5666f6190ac0a8c0e9a41d8e408a5dcc5d17
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Jul 6 23:02:40 2012 -0400
Remove redundant method implementations.
By default, CamelStoreClass uses g_str_hash for its hash_folder_name
method, and g_str_equal for its equal_folder_name. So we don't need
to override those methods to do exactly the same thing.
src/camel/camel-mapi-store.c | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index 5d1a4f5..9a8eed5 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -1025,22 +1025,6 @@ mapi_store_finalize (GObject *object)
G_OBJECT_CLASS (camel_mapi_store_parent_class)->finalize (object);
}
-static guint
-mapi_store_hash_folder_name (gconstpointer key)
-{
- return g_str_hash(key);
-}
-
-static gint
-mapi_store_compare_folder_name (gconstpointer a,
- gconstpointer b)
-{
- gconstpointer aname = a;
- gconstpointer bname = b;
-
- return g_str_equal(aname, bname);
-}
-
static gboolean
mapi_store_can_refresh_folder (CamelStore *store,
CamelFolderInfo *info,
@@ -1972,8 +1956,6 @@ camel_mapi_store_class_init (CamelMapiStoreClass *class)
service_class->query_auth_types_sync = mapi_query_auth_types_sync;
store_class = CAMEL_STORE_CLASS (class);
- store_class->hash_folder_name = mapi_store_hash_folder_name;
- store_class->compare_folder_name = mapi_store_compare_folder_name;
store_class->can_refresh_folder = mapi_store_can_refresh_folder;
store_class->free_folder_info = camel_store_free_folder_info_full;
store_class->get_folder_sync = mapi_store_get_folder_sync;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]