mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
GVariantType: gut g_variant_type_check()
This function is causing an insane amount of wasted time on some real-world profiles and it's pretty useless since we already have GVariantType (as a type different from a string) for the purpose of static type safety. Disable it for now. We can possibly turn this back on again if we solve bug #544026. https://bugzilla.gnome.org/show_bug.cgi?id=679835
This commit is contained in:
parent
b53e95f3eb
commit
7936af6934
@ -486,14 +486,11 @@
|
|||||||
static gboolean
|
static gboolean
|
||||||
g_variant_type_check (const GVariantType *type)
|
g_variant_type_check (const GVariantType *type)
|
||||||
{
|
{
|
||||||
const gchar *type_string;
|
|
||||||
|
|
||||||
if (type == NULL)
|
if (type == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
type_string = (const gchar *) type;
|
#if 0
|
||||||
#ifndef G_DISABLE_CHECKS
|
return g_variant_type_string_scan ((const gchar *) type, NULL, NULL);
|
||||||
return g_variant_type_string_scan (type_string, NULL, NULL);
|
|
||||||
#else
|
#else
|
||||||
return TRUE;
|
return TRUE;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user