[Pkg-wmaker-commits] [wmix] 15/44: wmix: removed unused variable because a pixmap's mask is not used

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Sep 29 10:40:13 UTC 2017


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository wmix.

commit 80c88a41d3f6754844060e7cbf2cf1b2fb5eff97
Author: Christophe CURIS <christophe.curis at free.fr>
Date:   Sat Jun 7 21:21:43 2014 +0200

    wmix: removed unused variable because a pixmap's mask is not used
    
    The bitmap mask associated to the Led image on the knob was not used,
    probably because the visual gain is negligible compared to the added
    complexity to handle it.
    So, as compiler warned about it, remove the variable.
    
    Signed-off-by: Christophe CURIS <christophe.curis at free.fr>
---
 ui_x.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/ui_x.c b/ui_x.c
index 3d64329..2b993bf 100644
--- a/ui_x.c
+++ b/ui_x.c
@@ -531,7 +531,7 @@ static void draw_knob(float volume)
 {
     float bearing, led_x, led_y;
     int led_topleft_x, led_topleft_y;
-    Pixmap led_pixmap, led_mask;
+    Pixmap led_pixmap;
 
     bearing = (1.25 * PI) - (1.5 * PI) * volume;
 
@@ -544,13 +544,11 @@ static void draw_knob(float volume)
     /* clear previous knob picture */
     copy_xpm_area(87, 0, 26, 26, 36, 35);
 
-    if (mixer_is_muted()) {
+    if (mixer_is_muted())
 	led_pixmap = led_off_pixmap;
-	led_mask = led_off_mask;
-    } else {
+    else
 	led_pixmap = led_on_pixmap;
-	led_mask = led_on_mask;
-    }
+
     XCopyArea(display, led_pixmap, dockapp.pixmap, dockapp.gc,
 	    0, 0, LED_WIDTH, LED_HEIGHT, led_topleft_x, led_topleft_y);
     draw_percent();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmix.git



More information about the Pkg-wmaker-commits mailing list