[evolution] GalViewCollection: Remove "title" member.



commit 562c54612f15f9bb2ccce53c9fb0e3e972dfe957
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Jul 5 08:42:33 2013 -0400

    GalViewCollection: Remove "title" member.
    
    It's set by EShellView but not actually used for anything.
    
    Removed functions:
    
      gal_view_collection_set_title()

 .../evolution-util/evolution-util-sections.txt     |    1 -
 e-util/gal-view-collection.c                       |   13 -------------
 e-util/gal-view-collection.h                       |    4 ----
 shell/e-shell-view.c                               |    3 ---
 4 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt 
b/doc/reference/evolution-util/evolution-util-sections.txt
index bddebd5..1049826 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4590,7 +4590,6 @@ GalViewPrivate
 GalViewCollectionItem
 GalViewCollection
 gal_view_collection_new
-gal_view_collection_set_title
 gal_view_collection_set_storage_directories
 gal_view_collection_add_factory
 gal_view_collection_get_count
diff --git a/e-util/gal-view-collection.c b/e-util/gal-view-collection.c
index dc890f9..0e30530 100644
--- a/e-util/gal-view-collection.c
+++ b/e-util/gal-view-collection.c
@@ -165,9 +165,6 @@ gal_view_collection_dispose (GObject *object)
        g_free (collection->default_view);
        collection->default_view = NULL;
 
-       g_free (collection->title);
-       collection->title = NULL;
-
        /* Chain up to parent's dispose() method. */
        G_OBJECT_CLASS (gal_view_collection_parent_class)->dispose (object);
 }
@@ -207,8 +204,6 @@ gal_view_collection_init (GalViewCollection *collection)
        collection->loaded                = FALSE;
        collection->default_view          = NULL;
        collection->default_view_built_in = TRUE;
-
-       collection->title                 = NULL;
 }
 
 /**
@@ -222,14 +217,6 @@ gal_view_collection_new (void)
        return g_object_new (GAL_TYPE_VIEW_COLLECTION, NULL);
 }
 
-void
-gal_view_collection_set_title (GalViewCollection *collection,
-                               const gchar *title)
-{
-       g_free (collection->title);
-       collection->title = g_strdup (title);
-}
-
 /**
  * gal_view_collection_set_storage_directories
  * @collection: The view collection to initialize
diff --git a/e-util/gal-view-collection.h b/e-util/gal-view-collection.h
index 7903668..4e91075 100644
--- a/e-util/gal-view-collection.h
+++ b/e-util/gal-view-collection.h
@@ -73,8 +73,6 @@ struct _GalViewCollection {
        gchar *local_dir;
 
        gchar *default_view;
-
-       gchar *title;
 };
 
 struct _GalViewCollectionClass {
@@ -100,8 +98,6 @@ struct _GalViewCollectionItem {
 GType          gal_view_collection_get_type    (void) G_GNUC_CONST;
 GalViewCollection *
                gal_view_collection_new         (void);
-void           gal_view_collection_set_title   (GalViewCollection *collection,
-                                                const gchar        *title);
 
 /* Set up the view collection.  Call these two functions
  * before ever doing load or save and never call them again. */
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index efdebc8..b4ae29b 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -171,9 +171,6 @@ shell_view_init_view_collection (EShellViewClass *class)
        /* The view collection is never destroyed. */
        class->view_collection = gal_view_collection_new ();
 
-       gal_view_collection_set_title (
-               class->view_collection, class->label);
-
        gal_view_collection_set_storage_directories (
                class->view_collection, system_dir, local_dir);
 


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