Commit a831f1fb authored by Matthias Clasen's avatar Matthias Clasen

css matcher: Avoid a redundant call

The sole caller passes an interned string, so we don't
need to call g_intern_string again.
parent 11d35823
......@@ -313,7 +313,8 @@ static gboolean
gtk_css_matcher_node_has_id (const GtkCssMatcher *matcher,
const char *id)
{
return gtk_css_node_get_id (matcher->node.node) == g_intern_string (id);
/* assume all callers pass an interned string */
return gtk_css_node_get_id (matcher->node.node) == id;
}
static gboolean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment