[anjuta] remove some unused variables
- From: Johannes Schmid <jhs src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjuta] remove some unused variables
- Date: Thu, 24 Sep 2009 15:01:49 +0000 (UTC)
commit a423143ceb81cca76d709d8157e7fea392d4eb48
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Mon Sep 21 19:56:16 2009 +0200
remove some unused variables
https://bugzilla.gnome.org/show_bug.cgi?id=596007
libanjuta/anjuta-plugin.c | 1 -
plugins/class-gen/window.c | 2 +-
plugins/debug-manager/data_view.c | 1 -
plugins/debug-manager/sparse_view.c | 1 -
plugins/project-import/project-import-dialog.c | 1 -
plugins/sourceview/sourceview-cell.c | 1 -
plugins/sourceview/sourceview-io.c | 1 -
7 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/libanjuta/anjuta-plugin.c b/libanjuta/anjuta-plugin.c
index eb8439c..71ec4eb 100644
--- a/libanjuta/anjuta-plugin.c
+++ b/libanjuta/anjuta-plugin.c
@@ -310,7 +310,6 @@ static void
anjuta_plugin_class_init (AnjutaPluginClass *class)
{
GObjectClass *object_class = (GObjectClass*) class;
- GObjectClass *parent_class = g_type_class_peek_parent (class);
object_class->dispose = anjuta_plugin_dispose;
object_class->finalize = anjuta_plugin_finalize;
diff --git a/plugins/class-gen/window.c b/plugins/class-gen/window.c
index 00ebadd..402c7d8 100644
--- a/plugins/class-gen/window.c
+++ b/plugins/class-gen/window.c
@@ -1155,7 +1155,7 @@ cg_window_enable_add_to_project (CgWindow *window,
GtkWidget *widget;
priv = CG_WINDOW_PRIVATE (window);
- widget = gtk_builder_get_object (priv->bxml, "add_project");
+ widget = GTK_WIDGET (gtk_builder_get_object (priv->bxml, "add_project"));
gtk_widget_set_sensitive (widget, enable);
}
diff --git a/plugins/debug-manager/data_view.c b/plugins/debug-manager/data_view.c
index f86440f..f0f96a3 100644
--- a/plugins/debug-manager/data_view.c
+++ b/plugins/debug-manager/data_view.c
@@ -227,7 +227,6 @@ dma_data_view_goto_activate (GtkWidget *menu_item,
GtkWidget *toplevel;
GtkWidget *frame;
GtkWidget *vbox;
- GtkWidget *icon;
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (view));
diff --git a/plugins/debug-manager/sparse_view.c b/plugins/debug-manager/sparse_view.c
index c612d78..babbec5 100644
--- a/plugins/debug-manager/sparse_view.c
+++ b/plugins/debug-manager/sparse_view.c
@@ -218,7 +218,6 @@ dma_sparse_view_goto_activate (GtkWidget *menu_item,
GtkWidget *toplevel;
GtkWidget *frame;
GtkWidget *vbox;
- GtkWidget *icon;
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (view));
diff --git a/plugins/project-import/project-import-dialog.c b/plugins/project-import/project-import-dialog.c
index ebc2dc8..aa20b39 100644
--- a/plugins/project-import/project-import-dialog.c
+++ b/plugins/project-import/project-import-dialog.c
@@ -311,7 +311,6 @@ static void
project_import_dialog_class_init (ProjectImportDialogClass *klass)
{
GObjectClass* object_class = G_OBJECT_CLASS (klass);
- GtkDialogClass* parent_class = GTK_DIALOG_CLASS (klass);
object_class->finalize = project_import_dialog_finalize;
diff --git a/plugins/sourceview/sourceview-cell.c b/plugins/sourceview/sourceview-cell.c
index 762d473..85d22d7 100644
--- a/plugins/sourceview/sourceview-cell.c
+++ b/plugins/sourceview/sourceview-cell.c
@@ -135,7 +135,6 @@ icell_get_char(IAnjutaEditorCell* icell, gint index, GError** e)
static IAnjutaEditorAttribute
icell_get_attribute (IAnjutaEditorCell* icell, GError **e)
{
- SourceviewCell* cell = SOURCEVIEW_CELL(icell);
IAnjutaEditorAttribute attrib = IANJUTA_EDITOR_TEXT;
return attrib;
}
diff --git a/plugins/sourceview/sourceview-io.c b/plugins/sourceview/sourceview-io.c
index cb98fee..104921e 100644
--- a/plugins/sourceview/sourceview-io.c
+++ b/plugins/sourceview/sourceview-io.c
@@ -81,7 +81,6 @@ static void
sourceview_io_class_init (SourceviewIOClass *klass)
{
GObjectClass* object_class = G_OBJECT_CLASS (klass);
- GObjectClass* parent_class = G_OBJECT_CLASS (klass);
object_class->finalize = sourceview_io_finalize;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]