[gtksourceview] StyleScheme: remove dead code
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] StyleScheme: remove dead code
- Date: Thu, 5 Feb 2015 16:45:26 +0000 (UTC)
commit 1700fd28e0f41e4b81963571c3c78ac43f29ed64
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Feb 5 17:43:19 2015 +0100
StyleScheme: remove dead code
_gtk_source_style_scheme_new_from_file() is used instead.
gtksourceview/gtksourcestylescheme.c | 26 --------------------------
gtksourceview/gtksourcestylescheme.h | 4 ----
2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/gtksourceview/gtksourcestylescheme.c b/gtksourceview/gtksourcestylescheme.c
index 120b709..ad59b81 100644
--- a/gtksourceview/gtksourcestylescheme.c
+++ b/gtksourceview/gtksourcestylescheme.c
@@ -370,32 +370,6 @@ gtk_source_style_scheme_get_filename (GtkSourceStyleScheme *scheme)
return scheme->priv->filename;
}
-/**
- * _gtk_source_style_scheme_new:
- * @id: scheme id.
- * @name: scheme name.
- *
- * Returns: new empty #GtkSourceStyleScheme.
- *
- * Since: 2.0
- */
-GtkSourceStyleScheme *
-_gtk_source_style_scheme_new (const gchar *id,
- const gchar *name)
-{
- GtkSourceStyleScheme *scheme;
-
- g_return_val_if_fail (id != NULL, NULL);
- g_return_val_if_fail (name != NULL, NULL);
-
- scheme = g_object_new (GTK_SOURCE_TYPE_STYLE_SCHEME,
- "id", id,
- "name", name,
- NULL);
-
- return scheme;
-}
-
/*
* get_color_by_name:
* @scheme: a #GtkSourceStyleScheme.
diff --git a/gtksourceview/gtksourcestylescheme.h b/gtksourceview/gtksourcestylescheme.h
index 8a37ee5..587f622 100644
--- a/gtksourceview/gtksourcestylescheme.h
+++ b/gtksourceview/gtksourcestylescheme.h
@@ -54,10 +54,6 @@ struct _GtkSourceStyleSchemeClass
GType gtk_source_style_scheme_get_type (void) G_GNUC_CONST;
-G_GNUC_INTERNAL
-GtkSourceStyleScheme *_gtk_source_style_scheme_new (const gchar *id,
- const gchar *name);
-
const gchar *gtk_source_style_scheme_get_id (GtkSourceStyleScheme
*scheme);
const gchar *gtk_source_style_scheme_get_name (GtkSourceStyleScheme
*scheme);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]