[evolution-groupwise] Remove redundant method implementations.



commit b6b1a0735418cad77554b1697ca091808803b4d0
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Jul 6 23:07:11 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-groupwise-store.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/src/camel/camel-groupwise-store.c b/src/camel/camel-groupwise-store.c
index 88e4684..8955013 100644
--- a/src/camel/camel-groupwise-store.c
+++ b/src/camel/camel-groupwise-store.c
@@ -86,21 +86,6 @@ G_DEFINE_TYPE_WITH_CODE (
 	G_IMPLEMENT_INTERFACE (
 		G_TYPE_INITABLE, camel_groupwise_store_initable_init))
 
-static guint
-groupwise_hash_folder_name (gconstpointer key)
-{
-	return g_str_hash (key);
-}
-
-static gint
-groupwise_compare_folder_name (gconstpointer a,
-                               gconstpointer b)
-{
-	gconstpointer aname = a, bname = b;
-
-	return g_str_equal (aname, bname);
-}
-
 static gboolean
 check_for_connection (CamelService *service,
                       GCancellable *cancellable,
@@ -1558,8 +1543,6 @@ camel_groupwise_store_class_init (CamelGroupwiseStoreClass *class)
 	service_class->query_auth_types_sync = groupwise_store_query_auth_types_sync;
 
 	store_class = CAMEL_STORE_CLASS (class);
-	store_class->hash_folder_name = groupwise_hash_folder_name;
-	store_class->compare_folder_name = groupwise_compare_folder_name;
 	store_class->can_refresh_folder = groupwise_can_refresh_folder;
 	store_class->free_folder_info = camel_store_free_folder_info_full;
 	store_class->get_folder_sync = groupwise_store_get_folder_sync;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]