croco: Remove unused and dodgy function

The function creates a parser object that is never used nor
freed, then always returns NULL.

Luckily it's unused, so just remove it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3321>
This commit is contained in:
Florian Müllner 2024-05-17 14:02:15 +02:00 committed by Marge Bot
parent 9cafdb6d27
commit 3220005eea
2 changed files with 0 additions and 17 deletions

View File

@ -50,20 +50,6 @@ cr_selector_new (CRSimpleSel * a_simple_sel)
return result; return result;
} }
CRSelector *
cr_selector_parse_from_buf (const guchar * a_char_buf, enum CREncoding a_enc)
{
CRParser *parser = NULL;
g_return_val_if_fail (a_char_buf, NULL);
parser = cr_parser_new_from_buf ((guchar*)a_char_buf, strlen ((const char *) a_char_buf),
a_enc, FALSE);
g_return_val_if_fail (parser, NULL);
return NULL;
}
/** /**
* cr_selector_append: * cr_selector_append:
* *

View File

@ -70,9 +70,6 @@ struct _CRSelector
CRSelector* cr_selector_new (CRSimpleSel *a_sel_expr) ; CRSelector* cr_selector_new (CRSimpleSel *a_sel_expr) ;
CRSelector * cr_selector_parse_from_buf (const guchar * a_char_buf,
enum CREncoding a_enc) ;
CRSelector* cr_selector_append (CRSelector *a_this, CRSelector *a_new) ; CRSelector* cr_selector_append (CRSelector *a_this, CRSelector *a_new) ;
CRSelector* cr_selector_append_simple_sel (CRSelector *a_this, CRSelector* cr_selector_append_simple_sel (CRSelector *a_this,