[mutter] iconcache: Remove a useless icon_cache_free



commit 5ea0cf8bab1626b874a4f7b224dd19f4ee562c54
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Jul 14 12:02:58 2014 -0400

    iconcache: Remove a useless icon_cache_free
    
    All it does is poke a few fields. There is no point to it.

 src/core/window.c   |    2 --
 src/x11/iconcache.c |    6 ------
 src/x11/iconcache.h |    1 -
 3 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 6395f40..3d666a8 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -256,8 +256,6 @@ meta_window_finalize (GObject *object)
   if (window->transient_for)
     g_object_unref (window->transient_for);
 
-  meta_icon_cache_free (&window->icon_cache);
-
   g_free (window->sm_client_id);
   g_free (window->wm_client_machine);
   g_free (window->startup_id);
diff --git a/src/x11/iconcache.c b/src/x11/iconcache.c
index cafc23e..e03558a 100644
--- a/src/x11/iconcache.c
+++ b/src/x11/iconcache.c
@@ -548,12 +548,6 @@ meta_icon_cache_init (MetaIconCache *icon_cache)
 }
 
 void
-meta_icon_cache_free (MetaIconCache *icon_cache)
-{
-  icon_cache->origin = USING_NO_ICON;
-}
-
-void
 meta_icon_cache_property_changed (MetaIconCache *icon_cache,
                                   MetaDisplay   *display,
                                   Atom           atom)
diff --git a/src/x11/iconcache.h b/src/x11/iconcache.h
index 565bbff..814fef5 100644
--- a/src/x11/iconcache.h
+++ b/src/x11/iconcache.h
@@ -51,7 +51,6 @@ struct _MetaIconCache
 };
 
 void           meta_icon_cache_init                 (MetaIconCache *icon_cache);
-void           meta_icon_cache_free                 (MetaIconCache *icon_cache);
 void           meta_icon_cache_property_changed     (MetaIconCache *icon_cache,
                                                      MetaDisplay   *display,
                                                      Atom           atom);


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