From 6643cf062d1e9306064696e47cb0b7f5820d449a Mon Sep 17 00:00:00 2001
Date: Thu, 29 Sep 2011 19:59:53 +0300
Subject: [PATCH 2/4] button.c: Remove two unused variables


---
 src/button.c |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/src/button.c b/src/button.c
index 1e20e99..cb5ddae 100644
--- a/src/button.c
+++ b/src/button.c
@@ -23,7 +23,6 @@ static void GetScaledIconSize(IconNode *ip, int maxsize,
 void DrawButton(ButtonNode *bp) {
 
    long outlinePixel;
-   long topPixel, bottomPixel;
    ColorType fg;
    long bg1, bg2;
 
@@ -52,8 +51,6 @@ void DrawButton(ButtonNode *bp) {
       bg1 = colors[COLOR_MENU_BG];
       bg2 = colors[COLOR_MENU_BG];
       outlinePixel = colors[COLOR_MENU_BG];
-      topPixel = colors[COLOR_MENU_BG];
-      bottomPixel = colors[COLOR_MENU_BG];
       break;
    case BUTTON_MENU_ACTIVE:
       fg = COLOR_MENU_ACTIVE_FG;
@@ -64,24 +61,18 @@ void DrawButton(ButtonNode *bp) {
       } else {
          outlinePixel = colors[COLOR_MENU_ACTIVE_DOWN];
       }
-      topPixel = colors[COLOR_MENU_ACTIVE_UP];
-      bottomPixel = colors[COLOR_MENU_ACTIVE_DOWN];
       break;
    case BUTTON_TASK:
       fg = COLOR_TASK_FG;
       bg1 = colors[COLOR_TASK_BG1];
       bg2 = colors[COLOR_TASK_BG2];
-      topPixel = colors[COLOR_TASK_UP];
-      bottomPixel = colors[COLOR_TASK_DOWN];
-      outlinePixel = bottomPixel;
+      outlinePixel = colors[COLOR_TASK_DOWN];
       break;
    case BUTTON_TASK_ACTIVE:
       fg = COLOR_TASK_ACTIVE_FG;
       bg1 = colors[COLOR_TASK_ACTIVE_BG1];
       bg2 = colors[COLOR_TASK_ACTIVE_BG2];
-      topPixel = colors[COLOR_TASK_ACTIVE_DOWN];
-      bottomPixel = colors[COLOR_TASK_ACTIVE_UP];
-      outlinePixel = bottomPixel;
+      outlinePixel = colors[COLOR_TASK_ACTIVE_UP];
       break;
    case BUTTON_MENU:
    default:
@@ -89,8 +80,6 @@ void DrawButton(ButtonNode *bp) {
       bg1 = colors[COLOR_MENU_BG];
       bg2 = colors[COLOR_MENU_BG];
       outlinePixel = colors[COLOR_MENU_DOWN];
-      topPixel = colors[COLOR_MENU_UP];
-      bottomPixel = colors[COLOR_MENU_DOWN];
       break;
    }
 
-- 
1.7.2.1

