[gedit] Remove unused variables



commit 3c7f45e1bcfe8020ecd7f145b127f8046c936cc3
Author: Garrett Regier <alias301 gmail com>
Date:   Sat Jan 1 12:39:15 2011 -0800

    Remove unused variables

 gedit/dialogs/gedit-preferences-dialog.c |    3 ---
 gedit/gedit-document.c                   |    1 -
 gedit/gedit-tab.c                        |    3 ++-
 gedit/gedit-view.c                       |    2 --
 plugins/spell/gedit-spell-plugin.c       |    4 ----
 tests/document-loader.c                  |    3 ---
 tests/document-saver.c                   |    1 -
 7 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/gedit/dialogs/gedit-preferences-dialog.c b/gedit/dialogs/gedit-preferences-dialog.c
index 38a0a94..816f73d 100644
--- a/gedit/dialogs/gedit-preferences-dialog.c
+++ b/gedit/dialogs/gedit-preferences-dialog.c
@@ -122,9 +122,6 @@ struct _GeditPreferencesDialogPrivate
 
 	/* Plugins manager */
 	GtkWidget	*plugin_manager_place_holder;
-
-	/* Style Scheme editor dialog */
-	GtkWidget	*style_scheme_dialog;
 };
 
 
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 2f5cdea..5ca5d3e 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -2944,7 +2944,6 @@ gedit_document_get_metadata (GeditDocument *doc,
 			     const gchar   *key)
 {
 	gchar *value = NULL;
-	gchar *uri;
 
 	g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL);
 	g_return_val_if_fail (key != NULL, NULL);
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index bfb38b4..5443868 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -960,7 +960,6 @@ document_loaded (GeditDocument *document,
 {
 	GtkWidget *emsg;
 	GFile *location;
-	const GeditEncoding *encoding;
 
 	g_return_if_fail ((tab->priv->state == GEDIT_TAB_STATE_LOADING) ||
 			  (tab->priv->state == GEDIT_TAB_STATE_REVERTING));
@@ -981,6 +980,8 @@ document_loaded (GeditDocument *document,
 	if (error != NULL &&
 	    (error->domain != GEDIT_DOCUMENT_ERROR || error->code != GEDIT_DOCUMENT_ERROR_CONVERSION_FALLBACK))
 	{
+		const GeditEncoding *encoding;
+
 		if (tab->priv->state == GEDIT_TAB_STATE_LOADING)
 			gedit_tab_set_state (tab, GEDIT_TAB_STATE_LOADING_ERROR);
 		else
diff --git a/gedit/gedit-view.c b/gedit/gedit-view.c
index 962db1a..190e02c 100644
--- a/gedit/gedit-view.c
+++ b/gedit/gedit-view.c
@@ -314,7 +314,6 @@ on_notify_buffer_cb (GeditView  *view,
 static void 
 gedit_view_init (GeditView *view)
 {
-	GObject *gs;
 	GtkTargetList *tl;
 	gboolean use_default_font;
 	gboolean display_line_numbers;
@@ -331,7 +330,6 @@ gedit_view_init (GeditView *view)
 	
 	view->priv = GEDIT_VIEW_GET_PRIVATE (view);
 
-	gs = _gedit_app_get_settings (gedit_app_get_default ());
 	view->priv->editor_settings = g_settings_new ("org.gnome.gedit.preferences.editor");
 
 	/* Get setting values */
diff --git a/plugins/spell/gedit-spell-plugin.c b/plugins/spell/gedit-spell-plugin.c
index 815e7ee..419ef97 100644
--- a/plugins/spell/gedit-spell-plugin.c
+++ b/plugins/spell/gedit-spell-plugin.c
@@ -1078,10 +1078,8 @@ tab_added_cb (GeditWindow      *window,
 	      GeditSpellPlugin *plugin)
 {
 	GeditDocument *doc;
-	GeditView *view;
 
 	doc = gedit_tab_get_document (tab);
-	view = gedit_tab_get_view (tab);
 
 	g_signal_connect (doc, "loaded",
 			  G_CALLBACK (on_document_loaded),
@@ -1098,10 +1096,8 @@ tab_removed_cb (GeditWindow      *window,
 		GeditSpellPlugin *plugin)
 {
 	GeditDocument *doc;
-	GeditView *view;
 
 	doc = gedit_tab_get_document (tab);
-	view = gedit_tab_get_view (tab);
 	
 	g_signal_handlers_disconnect_by_func (doc, on_document_loaded, plugin);
 	g_signal_handlers_disconnect_by_func (doc, on_document_saved, plugin);
diff --git a/tests/document-loader.c b/tests/document-loader.c
index 73831ab..be82faa 100644
--- a/tests/document-loader.c
+++ b/tests/document-loader.c
@@ -40,8 +40,6 @@ create_document (const gchar *filename,
                  const gchar *contents)
 {
 	GError *error = NULL;
-	GeditDocument *document;
-	gchar *uri;
 
 	if (!g_file_set_contents (filename, contents, -1, &error))
 	{
@@ -103,7 +101,6 @@ test_loader (const gchar *filename,
              gint         newline_type)
 {
 	GFile *file;
-	gchar *uri;
 	GeditDocument *document;
 
 	file = create_document (filename, contents);
diff --git a/tests/document-saver.c b/tests/document-saver.c
index c99b678..604a587 100644
--- a/tests/document-saver.c
+++ b/tests/document-saver.c
@@ -204,7 +204,6 @@ test_saver (const gchar              *filename_or_uri,
             SaverTestData            *data)
 {
 	GFile *file;
-	gchar *uri;
 	GeditDocument *document;
 	gboolean existed;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]