[dia] [scan-build] Dead assignment
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dia] [scan-build] Dead assignment
- Date: Sun, 24 Jan 2010 11:11:50 +0000 (UTC)
commit 55dc3242a36ffa8a6930be4fe5e6e43dd4417c55
Author: Hans Breuer <hans breuer org>
Date: Mon Jan 4 18:42:14 2010 +0100
[scan-build] Dead assignment
Value stored to 'dia' is never read
app/find-and-replace.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/app/find-and-replace.c b/app/find-and-replace.c
index aaf34b0..d260dc4 100644
--- a/app/find-and-replace.c
+++ b/app/find-and-replace.c
@@ -496,12 +496,10 @@ void
edit_find_callback(gpointer data, guint action, GtkWidget *widget)
{
DDisplay *ddisp;
- Diagram *dia;
GtkWidget *dialog;
ddisp = ddisplay_active();
if (!ddisp) return;
- dia = ddisp->diagram;
/* no static var, instead we are attaching the dialog to the diplay shell */
dialog = g_object_get_data (G_OBJECT (ddisp->shell), "edit-find-dialog");
@@ -527,12 +525,10 @@ void
edit_replace_callback(gpointer data, guint action, GtkWidget *widget)
{
DDisplay *ddisp;
- Diagram *dia;
GtkWidget *dialog;
ddisp = ddisplay_active();
if (!ddisp) return;
- dia = ddisp->diagram;
/* no static var, instead we are attaching the dialog to the diplay shell */
dialog = g_object_get_data (G_OBJECT (ddisp->shell), "edit-replace-dialog");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]