mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
Remove the handler trash stack, which is now unused. (g_signal_init):
2005-12-30 Matthias Clasen <mclasen@redhat.com> * gsignal.c: Remove the handler trash stack, which is now unused. (g_signal_init): Remove the restriction that HandlerMatch must be the same size as GList, and obsolete comments referring to mem chunks.
This commit is contained in:
committed by
Matthias Clasen
parent
5882074979
commit
8aa8d430d2
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
* gsignal.c: Remove the handler trash stack, which
|
* gsignal.c: Remove the handler trash stack, which
|
||||||
is now unused.
|
is now unused.
|
||||||
|
(g_signal_init): Remove the restriction that HandlerMatch
|
||||||
|
must be the same size as GList, and obsolete comments
|
||||||
|
referring to mem chunks.
|
||||||
|
|
||||||
2005-12-24 Matthias Clasen <mclasen@redhat.com>
|
2005-12-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
@@ -387,11 +387,6 @@ handler_match_prepend (HandlerMatch *list,
|
|||||||
{
|
{
|
||||||
HandlerMatch *node;
|
HandlerMatch *node;
|
||||||
|
|
||||||
/* yeah, we could use our own memchunk here, introducing yet more
|
|
||||||
* rarely used cached nodes and extra allocation overhead.
|
|
||||||
* instead, we use GList* nodes, since they are exactly the size
|
|
||||||
* we need and are already cached. g_signal_init() asserts this.
|
|
||||||
*/
|
|
||||||
node = g_slice_new (HandlerMatch);
|
node = g_slice_new (HandlerMatch);
|
||||||
node->handler = handler;
|
node->handler = handler;
|
||||||
node->next = list;
|
node->next = list;
|
||||||
@@ -714,9 +709,6 @@ g_signal_init (void)
|
|||||||
SIGNAL_LOCK ();
|
SIGNAL_LOCK ();
|
||||||
if (!g_n_signal_nodes)
|
if (!g_n_signal_nodes)
|
||||||
{
|
{
|
||||||
/* handler_id_node_prepend() requires this */
|
|
||||||
g_assert (sizeof (GList) == sizeof (HandlerMatch));
|
|
||||||
|
|
||||||
/* setup handler list binary searchable array hash table (in german, that'd be one word ;) */
|
/* setup handler list binary searchable array hash table (in german, that'd be one word ;) */
|
||||||
g_handler_list_bsa_ht = g_hash_table_new (g_direct_hash, NULL);
|
g_handler_list_bsa_ht = g_hash_table_new (g_direct_hash, NULL);
|
||||||
g_signal_key_bsa = g_bsearch_array_create (&g_signal_key_bconfig);
|
g_signal_key_bsa = g_bsearch_array_create (&g_signal_key_bconfig);
|
||||||
|
Reference in New Issue
Block a user