[evolution-data-server] Remove camel_folder_ref_message_info().



commit bc6e63faf4c3a3a2b8649d8bea5bf4b0f4a7a0dc
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Sep 23 08:31:19 2013 -0400

    Remove camel_folder_ref_message_info().
    
    Use camel_message_info_ref() instead.

 camel/camel-folder.c                    |   35 -------------------------------
 camel/camel-folder.h                    |    6 -----
 docs/reference/camel/camel-sections.txt |    1 -
 3 files changed, 0 insertions(+), 42 deletions(-)
---
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index acc0bc3..5b476fc 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -882,15 +882,6 @@ folder_get_message_info (CamelFolder *folder,
 }
 
 static void
-folder_ref_message_info (CamelFolder *folder,
-                         CamelMessageInfo *info)
-{
-       g_return_if_fail (folder->summary != NULL);
-
-       camel_message_info_ref (info);
-}
-
-static void
 folder_free_message_info (CamelFolder *folder,
                           CamelMessageInfo *info)
 {
@@ -1845,7 +1836,6 @@ camel_folder_class_init (CamelFolderClass *class)
        class->free_summary = folder_free_summary;
        class->search_free = folder_search_free;
        class->get_message_info = folder_get_message_info;
-       class->ref_message_info = folder_ref_message_info;
        class->free_message_info = folder_free_message_info;
        class->delete_ = folder_delete;
        class->rename = folder_rename;
@@ -2604,31 +2594,6 @@ camel_folder_free_message_info (CamelFolder *folder,
        class->free_message_info (folder, info);
 }
 
-/**
- * camel_folder_ref_message_info:
- * @folder: a #CamelFolder
- * @info: a #CamelMessageInfo
- *
- * DEPRECATED: Use camel_message_info_ref() directly.
- *
- * Ref a #CamelMessageInfo, previously obtained with
- * camel_folder_get_message_info().
- **/
-void
-camel_folder_ref_message_info (CamelFolder *folder,
-                               CamelMessageInfo *info)
-{
-       CamelFolderClass *class;
-
-       g_return_if_fail (CAMEL_IS_FOLDER (folder));
-       g_return_if_fail (info != NULL);
-
-       class = CAMEL_FOLDER_GET_CLASS (folder);
-       g_return_if_fail (class->ref_message_info != NULL);
-
-       class->ref_message_info (folder, info);
-}
-
 /* TODO: is this function required anyway? */
 /**
  * camel_folder_has_summary_capability:
diff --git a/camel/camel-folder.h b/camel/camel-folder.h
index 624bdb0..33d82aa 100644
--- a/camel/camel-folder.h
+++ b/camel/camel-folder.h
@@ -187,8 +187,6 @@ struct _CamelFolderClass {
        CamelMessageInfo *
                        (*get_message_info)     (CamelFolder *folder,
                                                 const gchar *uid);
-       void            (*ref_message_info)     (CamelFolder *folder,
-                                                CamelMessageInfo *info);
        void            (*free_message_info)    (CamelFolder *folder,
                                                 CamelMessageInfo *info);
        void            (*delete_)              (CamelFolder *folder);
@@ -475,10 +473,6 @@ CamelMessageInfo *
                                                 const gchar *uid);
 void           camel_folder_free_message_info  (CamelFolder *folder,
                                                 CamelMessageInfo *info);
-#ifndef CAMEL_DISABLE_DEPRECATED
-void           camel_folder_ref_message_info   (CamelFolder *folder,
-                                                CamelMessageInfo *info);
-#endif
 void           camel_folder_delete             (CamelFolder *folder);
 void           camel_folder_rename             (CamelFolder *folder,
                                                 const gchar *new_name);
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index ba847dc..54b45de 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -440,7 +440,6 @@ camel_folder_search_free
 camel_folder_count_by_expression
 camel_folder_get_message_info
 camel_folder_free_message_info
-camel_folder_ref_message_info
 camel_folder_delete
 camel_folder_rename
 camel_folder_changed


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