[glib/wip/notify-performance: 1/8] [notify] drop some unused code



commit 610bfe3e5235970a7be0f5108ab70d512c807be4
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Nov 16 12:15:42 2011 +0000

    [notify] drop some unused code

 gobject/gobjectnotifyqueue.c |   28 ----------------------------
 1 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/gobject/gobjectnotifyqueue.c b/gobject/gobjectnotifyqueue.c
index 8aa1485..d07fb69 100644
--- a/gobject/gobjectnotifyqueue.c
+++ b/gobject/gobjectnotifyqueue.c
@@ -40,7 +40,6 @@ struct _GObjectNotifyContext
 {
   GQuark                       quark_notify_queue;
   GObjectNotifyQueueDispatcher dispatcher;
-  GTrashStack                 *_nqueue_trash; /* unused */
 };
 struct _GObjectNotifyQueue
 {
@@ -134,21 +133,6 @@ g_object_notify_queue_thaw (GObject            *object,
 }
 
 static inline void
-g_object_notify_queue_clear (GObject            *object,
-			     GObjectNotifyQueue *nqueue)
-{
-  g_return_if_fail (nqueue->freeze_count > 0);
-
-  G_LOCK(notify_lock);
-
-  g_slist_free (nqueue->pspecs);
-  nqueue->pspecs = NULL;
-  nqueue->n_pspecs = 0;
-
-  G_UNLOCK(notify_lock);
-}
-
-static inline void
 g_object_notify_queue_add (GObject            *object,
 			   GObjectNotifyQueue *nqueue,
 			   GParamSpec	      *pspec)
@@ -176,18 +160,6 @@ g_object_notify_queue_add (GObject            *object,
     }
 }
 
-/* NB: This function is not threadsafe, do not ever use it if
- * you need a threadsafe notify queue.
- * Use g_object_notify_queue_freeze() to acquire the queue and
- * g_object_notify_queue_thaw() after you are done instead.
- */
-static inline GObjectNotifyQueue*
-g_object_notify_queue_from_object (GObject              *object,
-                                   GObjectNotifyContext *context)
-{
-  return g_datalist_id_get_data (&object->qdata, context->quark_notify_queue);
-}
-
 G_END_DECLS
 
 #endif /* __G_OBJECT_NOTIFY_QUEUE_H__ */



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