diff options
author | Dan Winship <danw@src.gnome.org> | 2000-07-13 04:37:00 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-07-13 04:37:00 +0800 |
commit | 540e1d7671ec843c2db2d03810d948f879ac1bfc (patch) | |
tree | 93b23a7c4a19ef3db93730064e0a9c5035a04f81 /camel/providers/vee | |
parent | 4b7d13b41ff3dd03e8490108f30277f5469d40bf (diff) | |
download | gsoc2013-evolution-540e1d7671ec843c2db2d03810d948f879ac1bfc.tar.gz gsoc2013-evolution-540e1d7671ec843c2db2d03810d948f879ac1bfc.tar.zst gsoc2013-evolution-540e1d7671ec843c2db2d03810d948f879ac1bfc.zip |
Useful default implementations for free_{uids,subfolder_names,summary}.
* camel-folder.c (camel_folder_free_deep,
camel_folder_free_shallow, camel_folder_free_nop): Useful default
implementations for free_{uids,subfolder_names,summary}.
(free_subfolder_names, free_uids): Make these g_warning-ing
default implementations.
* providers/*/camel-*-folder.c: Use the new functions where
appropriate, remove duplicated code.
svn path=/trunk/; revision=4120
Diffstat (limited to 'camel/providers/vee')
-rw-r--r-- | camel/providers/vee/camel-vee-folder.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/camel/providers/vee/camel-vee-folder.c b/camel/providers/vee/camel-vee-folder.c index 70f03e6c0e..54417bac64 100644 --- a/camel/providers/vee/camel-vee-folder.c +++ b/camel/providers/vee/camel-vee-folder.c @@ -47,7 +47,6 @@ static void vee_sync (CamelFolder *folder, gboolean expunge, CamelException *ex) static GPtrArray *vee_get_uids (CamelFolder *folder, CamelException *ex); GPtrArray *vee_get_summary (CamelFolder *folder, CamelException *ex); -void vee_free_summary (CamelFolder *folder, GPtrArray *array); static gint vee_get_message_count (CamelFolder *folder, CamelException *ex); static gint vee_get_unread_message_count (CamelFolder *folder, CamelException *ex); @@ -111,8 +110,9 @@ camel_vee_folder_class_init (CamelVeeFolderClass *klass) folder_class->sync = vee_sync; folder_class->get_uids = vee_get_uids; + folder_class->free_uids = camel_folder_free_deep; folder_class->get_summary = vee_get_summary; - folder_class->free_summary = vee_free_summary; + folder_class->free_summary = camel_folder_free_nop; folder_class->get_message = vee_get_message; folder_class->get_message_info = vee_get_message_info; @@ -344,11 +344,6 @@ GPtrArray *vee_get_summary (CamelFolder *folder, CamelException *ex) return vf->messages; } -void vee_free_summary (CamelFolder *folder, GPtrArray *array) -{ - /* no op */ -} - static const CamelMessageInfo *vee_get_message_info (CamelFolder *f, const char *uid) { CamelVeeFolder *vf = (CamelVeeFolder *)f; |