Remove unsplit element classes and pseudo-classes

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=687465
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
This commit is contained in:
Simon McVittie 2012-11-07 18:45:47 +00:00
parent a7da137778
commit 2cfed952bb
3 changed files with 0 additions and 24 deletions

View File

@ -77,9 +77,7 @@ struct _StThemeNode {
GType element_type; GType element_type;
char *element_id; char *element_id;
char *element_class;
GStrv element_classes; GStrv element_classes;
char *pseudo_class;
GStrv pseudo_classes; GStrv pseudo_classes;
char *inline_style; char *inline_style;

View File

@ -96,9 +96,7 @@ st_theme_node_finalize (GObject *object)
StThemeNode *node = ST_THEME_NODE (object); StThemeNode *node = ST_THEME_NODE (object);
g_free (node->element_id); g_free (node->element_id);
g_free (node->element_class);
g_strfreev (node->element_classes); g_strfreev (node->element_classes);
g_free (node->pseudo_class);
g_strfreev (node->pseudo_classes); g_strfreev (node->pseudo_classes);
g_free (node->inline_style); g_free (node->inline_style);
@ -230,9 +228,7 @@ st_theme_node_new (StThemeContext *context,
node->element_type = element_type; node->element_type = element_type;
node->element_id = g_strdup (element_id); node->element_id = g_strdup (element_id);
node->element_class = g_strdup (element_class);
node->element_classes = split_on_whitespace (element_class); node->element_classes = split_on_whitespace (element_class);
node->pseudo_class = g_strdup (pseudo_class);
node->pseudo_classes = split_on_whitespace (pseudo_class); node->pseudo_classes = split_on_whitespace (pseudo_class);
node->inline_style = g_strdup (inline_style); node->inline_style = g_strdup (inline_style);
@ -288,14 +284,6 @@ st_theme_node_get_element_id (StThemeNode *node)
return node->element_id; return node->element_id;
} }
const char *
st_theme_node_get_element_class (StThemeNode *node)
{
g_return_val_if_fail (ST_IS_THEME_NODE (node), NULL);
return node->element_class;
}
/** /**
* st_theme_node_get_element_classes: * st_theme_node_get_element_classes:
* *
@ -309,14 +297,6 @@ st_theme_node_get_element_classes (StThemeNode *node)
return node->element_classes; return node->element_classes;
} }
const char *
st_theme_node_get_pseudo_class (StThemeNode *node)
{
g_return_val_if_fail (ST_IS_THEME_NODE (node), NULL);
return node->pseudo_class;
}
/** /**
* st_theme_node_get_pseudo_classes: * st_theme_node_get_pseudo_classes:
* *

View File

@ -113,9 +113,7 @@ gboolean st_theme_node_equal (StThemeNode *node_a, StThemeNode *node_b);
GType st_theme_node_get_element_type (StThemeNode *node); GType st_theme_node_get_element_type (StThemeNode *node);
const char *st_theme_node_get_element_id (StThemeNode *node); const char *st_theme_node_get_element_id (StThemeNode *node);
const char *st_theme_node_get_element_class (StThemeNode *node);
GStrv st_theme_node_get_element_classes (StThemeNode *node); GStrv st_theme_node_get_element_classes (StThemeNode *node);
const char *st_theme_node_get_pseudo_class (StThemeNode *node);
GStrv st_theme_node_get_pseudo_classes (StThemeNode *node); GStrv st_theme_node_get_pseudo_classes (StThemeNode *node);
/* Generic getters ... these are not cached so are less efficient. The other /* Generic getters ... these are not cached so are less efficient. The other