mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
[notify] drop some unused code
This commit is contained in:
@@ -190,7 +190,6 @@ struct _GObjectNotifyContext
|
|||||||
{
|
{
|
||||||
GQuark quark_notify_queue;
|
GQuark quark_notify_queue;
|
||||||
GObjectNotifyQueueDispatcher dispatcher;
|
GObjectNotifyQueueDispatcher dispatcher;
|
||||||
GTrashStack *_nqueue_trash; /* unused */
|
|
||||||
};
|
};
|
||||||
struct _GObjectNotifyQueue
|
struct _GObjectNotifyQueue
|
||||||
{
|
{
|
||||||
@@ -305,21 +304,6 @@ g_object_notify_queue_thaw (GObject *object,
|
|||||||
g_free (free_me);
|
g_free (free_me);
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
static inline void
|
||||||
g_object_notify_queue_add (GObject *object,
|
g_object_notify_queue_add (GObject *object,
|
||||||
GObjectNotifyQueue *nqueue,
|
GObjectNotifyQueue *nqueue,
|
||||||
@@ -348,18 +332,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);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
debug_objects_foreach (gpointer key,
|
debug_objects_foreach (gpointer key,
|
||||||
gpointer value,
|
gpointer value,
|
||||||
|
Reference in New Issue
Block a user