Unused variable guint old
authorMikael Magnusson <mikachu@gmail.com>
Fri, 19 Feb 2010 21:13:46 +0000 (22:13 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Fri, 19 Feb 2010 21:13:46 +0000 (22:13 +0100)
openbox/screen.c

index 55fd58d..1f95bc6 100644 (file)
@@ -513,7 +513,6 @@ void screen_resize(void)
 
 void screen_set_num_desktops(guint num)
 {
 
 void screen_set_num_desktops(guint num)
 {
-    guint old;
     gulong *viewport;
     GList *it, *stacking_copy;
 
     gulong *viewport;
     GList *it, *stacking_copy;
 
@@ -521,7 +520,6 @@ void screen_set_num_desktops(guint num)
 
     if (screen_num_desktops == num) return;
 
 
     if (screen_num_desktops == num) return;
 
-    old = screen_num_desktops;
     screen_num_desktops = num;
     PROP_SET32(RootWindow(ob_display, ob_screen),
                net_number_of_desktops, cardinal, num);
     screen_num_desktops = num;
     PROP_SET32(RootWindow(ob_display, ob_screen),
                net_number_of_desktops, cardinal, num);