summaryrefslogtreecommitdiff
path: root/gtk/gtkstylecontext.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-05-07 08:19:52 +0200
committerTimm Bäder <mail@baedert.org>2020-05-10 08:44:20 +0200
commit343707e0a2142cb303f2f7b8e45c8e7c89f131ac (patch)
tree01aa3c2c39a748bf065dcfd9a98a2c06128c9b1b /gtk/gtkstylecontext.c
parent1b10020b6e0853f92f75c7b9bae9d08acff2b5f6 (diff)
downloadgtk+-343707e0a2142cb303f2f7b8e45c8e7c89f131ac.tar.gz
stylecontext: Remove some unused private API
Diffstat (limited to 'gtk/gtkstylecontext.c')
-rw-r--r--gtk/gtkstylecontext.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 8463b93c0f..c15acac6ed 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -471,42 +471,6 @@ gtk_style_context_remove_provider_for_display (GdkDisplay *display,
_gtk_style_cascade_remove_provider (cascade, provider);
}
-/*
- * gtk_style_context_set_id:
- * @context: a #GtkStyleContext
- * @id: (allow-none): the id to use or %NULL for none.
- *
- * Sets the CSS ID to be used when obtaining style information.
- **/
-void
-gtk_style_context_set_id (GtkStyleContext *context,
- const char *id)
-{
- GtkStyleContextPrivate *priv = gtk_style_context_get_instance_private (context);
-
- g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
-
- gtk_css_node_set_id (priv->cssnode, g_quark_from_string (id));
-}
-
-/*
- * gtk_style_context_get_id:
- * @context: a #GtkStyleContext
- *
- * Returns the CSS ID used when obtaining style information.
- *
- * Returns: (nullable): the ID or %NULL if no ID is set.
- **/
-const char *
-gtk_style_context_get_id (GtkStyleContext *context)
-{
- GtkStyleContextPrivate *priv = gtk_style_context_get_instance_private (context);
-
- g_return_val_if_fail (GTK_IS_STYLE_CONTEXT (context), NULL);
-
- return g_quark_to_string (gtk_css_node_get_id (priv->cssnode));
-}
-
/**
* gtk_style_context_set_state:
* @context: a #GtkStyleContext