[gnome-system-monitor] [Warning] Removed set but unused variables.



commit ca11ea2a355009bcbb3e64692299c69c855185ef
Author: Chris Kühl <chrisk openismus com>
Date:   Mon Apr 18 00:40:22 2011 +0200

    [Warning] Removed set but unused variables.

 src/sysinfo.cpp |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp
index 6d0116d..01d195a 100644
--- a/src/sysinfo.cpp
+++ b/src/sysinfo.cpp
@@ -525,11 +525,8 @@ procman_create_sysinfo_view(void)
   GtkWidget *distro_table;
 
   GtkWidget *hardware_table;
-  GtkWidget *memory_label;
-  GtkWidget *processor_label;
 
   GtkWidget *disk_space_table;
-  GtkWidget *disk_space_label;
 
   GtkWidget *header;
 
@@ -619,7 +616,7 @@ procman_create_sysinfo_view(void)
   g_free(markup);
 
   markup = procman::format_size(data->memory_bytes);
-  memory_label = add_row(GTK_TABLE(hardware_table), _("Memory:"),
+  add_row(GTK_TABLE(hardware_table), _("Memory:"),
                          markup, 0);
   g_free(markup);
 
@@ -634,7 +631,7 @@ procman_create_sysinfo_view(void)
       t = _("Processor:");
     }
 
-    processor_label = add_row(GTK_TABLE(hardware_table), t,
+    add_row(GTK_TABLE(hardware_table), t,
                               data->processors[i].c_str(), 1 + i);
 
     if(markup)
@@ -648,7 +645,7 @@ procman_create_sysinfo_view(void)
   g_free(markup);
 
   markup = procman::format_size(data->free_space_bytes);
-  disk_space_label = add_row(GTK_TABLE(disk_space_table),
+  add_row(GTK_TABLE(disk_space_table),
                              _("Available disk space:"), markup,
                              0);
   g_free(markup);



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