cogl/debug: Remove unused ignore-help parameter

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3895>
This commit is contained in:
Bilal Elmoussaoui 2024-07-22 11:10:34 +02:00
parent f4f6422699
commit fb3f239953
2 changed files with 4 additions and 11 deletions

View File

@ -150,12 +150,8 @@ _cogl_parse_debug_string_for_keys (const char *value,
void void
_cogl_parse_debug_string (const char *value, _cogl_parse_debug_string (const char *value,
gboolean enable, gboolean enable)
gboolean ignore_help)
{ {
if (ignore_help && strcmp (value, "help") == 0)
return;
/* We don't want to let g_parse_debug_string handle "all" because /* We don't want to let g_parse_debug_string handle "all" because
* literally enabling all the debug options wouldn't be useful to * literally enabling all the debug options wouldn't be useful to
* anyone; instead the all option enables all non behavioural * anyone; instead the all option enables all non behavioural
@ -214,8 +210,7 @@ _cogl_debug_check_environment (void)
if (env_string != NULL) if (env_string != NULL)
{ {
_cogl_parse_debug_string (env_string, _cogl_parse_debug_string (env_string,
TRUE /* enable the flags */, TRUE /* enable the flags */);
FALSE /* don't ignore help */);
env_string = NULL; env_string = NULL;
} }
@ -223,8 +218,7 @@ _cogl_debug_check_environment (void)
if (env_string != NULL) if (env_string != NULL)
{ {
_cogl_parse_debug_string (env_string, _cogl_parse_debug_string (env_string,
FALSE /* disable the flags */, FALSE /* disable the flags */);
FALSE /* don't ignore help */);
env_string = NULL; env_string = NULL;
} }
} }

View File

@ -115,7 +115,6 @@ _cogl_debug_check_environment (void);
void void
_cogl_parse_debug_string (const char *value, _cogl_parse_debug_string (const char *value,
gboolean enable, gboolean enable);
gboolean ignore_help);
G_END_DECLS G_END_DECLS