mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
gobject: remove obsolete code comment about CArray
It's not clear what this code comment tries to tell us. Yes, when we
make changes, we must take care that the changes are correct and update
the relevant places.
It seems long obsolete. Drop it.
This partly reverts commit d7dd9aefd8
('placed a comment about not
changing CArray until we have').
This commit is contained in:
parent
180e4867c8
commit
81107da210
@ -613,9 +613,7 @@ g_object_base_class_finalize (GObjectClass *class)
|
||||
static void
|
||||
g_object_do_class_init (GObjectClass *class)
|
||||
{
|
||||
/* read the comment about typedef struct CArray; on why not to change this quark */
|
||||
quark_closure_array = g_quark_from_static_string ("GObject-closure-array");
|
||||
|
||||
quark_weak_notifies = g_quark_from_static_string ("GObject-weak-notifies");
|
||||
quark_weak_locations = g_quark_from_static_string ("GObject-weak-locations");
|
||||
quark_toggle_refs = g_quark_from_static_string ("GObject-toggle-references");
|
||||
@ -4801,24 +4799,6 @@ typedef struct {
|
||||
guint n_closures;
|
||||
GClosure *closures[1]; /* flexible array */
|
||||
} CArray;
|
||||
/* don't change this structure without supplying an accessor for
|
||||
* watched closures, e.g.:
|
||||
* GSList* g_object_list_watched_closures (GObject *object)
|
||||
* {
|
||||
* CArray *carray;
|
||||
* g_return_val_if_fail (G_IS_OBJECT (object), NULL);
|
||||
* carray = g_object_get_data (object, "GObject-closure-array");
|
||||
* if (carray)
|
||||
* {
|
||||
* GSList *slist = NULL;
|
||||
* guint i;
|
||||
* for (i = 0; i < carray->n_closures; i++)
|
||||
* slist = g_slist_prepend (slist, carray->closures[i]);
|
||||
* return slist;
|
||||
* }
|
||||
* return NULL;
|
||||
* }
|
||||
*/
|
||||
|
||||
static void
|
||||
object_remove_closure (gpointer data,
|
||||
|
Loading…
Reference in New Issue
Block a user