From d2c79b966b02351c0002df7a6acc1b68755bb3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 20 Mar 2017 15:01:28 +0100 Subject: [PATCH] css-editor: Remove unused if statement The static local is set to NULL and never set to anything else, so we never use it anyway. --- gtk/inspector/css-editor.c | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/gtk/inspector/css-editor.c b/gtk/inspector/css-editor.c index 51d646ba95..acbedf6092 100644 --- a/gtk/inspector/css-editor.c +++ b/gtk/inspector/css-editor.c @@ -107,21 +107,14 @@ G_DEFINE_TYPE_WITH_PRIVATE (GtkInspectorCssEditor, gtk_inspector_css_editor, GTK static void set_initial_text (GtkInspectorCssEditor *ce) { - const gchar *text = NULL; - - if (text) - gtk_text_buffer_set_text (GTK_TEXT_BUFFER (ce->priv->text), text, -1); - else - { - gchar *initial_text; - initial_text = g_strconcat ("/*\n", - _("You can type here any CSS rule recognized by GTK+."), "\n", - _("You can temporarily disable this custom CSS by clicking on the “Pause” button above."), "\n\n", - _("Changes are applied instantly and globally, for the whole application."), "\n", - "*/\n\n", NULL); - gtk_text_buffer_set_text (GTK_TEXT_BUFFER (ce->priv->text), initial_text, -1); - g_free (initial_text); - } + gchar *initial_text; + initial_text = g_strconcat ("/*\n", + _("You can type here any CSS rule recognized by GTK+."), "\n", + _("You can temporarily disable this custom CSS by clicking on the “Pause” button above."), "\n\n", + _("Changes are applied instantly and globally, for the whole application."), "\n", + "*/\n\n", NULL); + gtk_text_buffer_set_text (GTK_TEXT_BUFFER (ce->priv->text), initial_text, -1); + g_free (initial_text); } static void