[evolution] Remove unused gal_view_collection_copy_view().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Remove unused gal_view_collection_copy_view().
- Date: Fri, 5 Jul 2013 20:42:39 +0000 (UTC)
commit 8fd95b78a4b93c44eec7cf110f61e898575c198b
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Jul 5 09:16:08 2013 -0400
Remove unused gal_view_collection_copy_view().
.../evolution-util/evolution-util-sections.txt | 1 -
e-util/gal-view-collection.c | 36 --------------------
e-util/gal-view-collection.h | 2 -
3 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt
b/doc/reference/evolution-util/evolution-util-sections.txt
index 5e9f04e..b2d36fd 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4597,7 +4597,6 @@ gal_view_collection_get_view
gal_view_collection_get_view_item
gal_view_collection_get_view_index_by_id
gal_view_collection_delete_view
-gal_view_collection_copy_view
gal_view_collection_load
gal_view_collection_save
gal_view_collection_loaded
diff --git a/e-util/gal-view-collection.c b/e-util/gal-view-collection.c
index 99601ef..ad3386f 100644
--- a/e-util/gal-view-collection.c
+++ b/e-util/gal-view-collection.c
@@ -608,42 +608,6 @@ gal_view_collection_delete_view (GalViewCollection *collection,
gal_view_collection_changed (collection);
}
-void
-gal_view_collection_copy_view (GalViewCollection *collection,
- gint i)
-{
- GalViewCollectionItem *item;
- GalView *view;
- GalViewClass *view_class;
-
- g_return_if_fail (GAL_IS_VIEW_COLLECTION (collection));
- g_return_if_fail (i >= 0 && i < collection->view_count);
-
- view = collection->view_data[i]->view;
- view_class = GAL_VIEW_GET_CLASS (view);
-
- item = g_new (GalViewCollectionItem, 1);
- item->ever_changed = TRUE;
- item->changed = FALSE;
- item->built_in = FALSE;
- item->title = g_strdup (gal_view_get_title (view));
- item->type = g_strdup (view_class->type_code);
- item->id = gal_view_generate_id (collection, view);
- item->filename = g_strdup_printf ("%s.galview", item->id);
- item->view = gal_view_clone (view);
- item->collection = collection;
-
- item->view_changed_id = g_signal_connect (
- item->view, "changed",
- G_CALLBACK (view_changed), item);
-
- collection->view_data = g_renew (GalViewCollectionItem *, collection->view_data,
collection->view_count + 1);
- collection->view_data[collection->view_count] = item;
- collection->view_count++;
-
- gal_view_collection_changed (collection);
-}
-
gboolean
gal_view_collection_loaded (GalViewCollection *collection)
{
diff --git a/e-util/gal-view-collection.h b/e-util/gal-view-collection.h
index b99f734..e169fe8 100644
--- a/e-util/gal-view-collection.h
+++ b/e-util/gal-view-collection.h
@@ -123,8 +123,6 @@ gint gal_view_collection_get_view_index_by_id
/* Manipulate the view collection */
void gal_view_collection_delete_view (GalViewCollection *collection,
gint i);
-void gal_view_collection_copy_view (GalViewCollection *collection,
- gint i);
/* Call set_storage_directories and add factories for anything
* that might be found there before doing either of these. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]