[Xfce4-commits] <xfce4-cpugraph-plugin:master> Remove dead code

Florian Rivoal noreply at xfce.org
Thu Sep 30 16:36:01 CEST 2010


Updating branch refs/heads/master
         to e2aeb44fd49d1b5ac5a2f8ff88e6e69c3b90cd56 (commit)
       from c1480e3f9976e614aaf1cd0966504fc92eb00579 (commit)

commit e2aeb44fd49d1b5ac5a2f8ff88e6e69c3b90cd56
Author: Florian Rivoal <frivoal at gmail.com>
Date:   Tue Jul 27 09:03:26 2010 +0900

    Remove dead code
    
    A little bit of cruft had accumulated. Remove it.

 panel-plugin/cpu.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/cpu.c b/panel-plugin/cpu.c
index ca9628f..d85c76b 100644
--- a/panel-plugin/cpu.c
+++ b/panel-plugin/cpu.c
@@ -227,7 +227,7 @@ static void set_bars_orientation( CPUGraph *base, GtkOrientation orientation)
 
 static gboolean update_cb( CPUGraph * base )
 {
-	gint i, j, a, b, factor;
+	gint i, a, b, factor;
 	if( !read_cpu_data( base->cpu_data, base->nr_cores ) )
 		return TRUE;
 
@@ -256,7 +256,6 @@ static gboolean update_cb( CPUGraph * base )
 	if( base->non_linear )
 	{
 		i = base->history_size - 1;
-		j = i + base->history_size;
 		while( i > 0 )
 		{
 			a = base->history[i], b = base->history[i-1];



More information about the Xfce4-commits mailing list