[gimp] app: Remove dead assignments (and variable)



commit 0ccaaf821613844524bd006ba6d8bc435d7aa0ab
Author: Mukund Sivaraman <muks banu com>
Date:   Mon Oct 3 13:05:30 2011 +0530

    app: Remove dead assignments (and variable)

 app/paint-funcs/paint-funcs.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c
index 5c587ac..ff455ec 100644
--- a/app/paint-funcs/paint-funcs.c
+++ b/app/paint-funcs/paint-funcs.c
@@ -4417,7 +4417,7 @@ combine_regions (PixelRegion          *src1,
                  const gboolean       *affect,
                  CombinationMode       type)
 {
-  gboolean has_alpha1, has_alpha2;
+  gboolean has_alpha1;
   guint i;
   struct combine_regions_struct st;
 
@@ -4426,24 +4426,22 @@ combine_regions (PixelRegion          *src1,
     {
     case COMBINE_INTEN_INTEN:
     case COMBINE_INDEXED_INDEXED:
-      has_alpha1 = has_alpha2 = FALSE;
+      has_alpha1 = FALSE;
       break;
     case COMBINE_INTEN_A_INTEN:
     case COMBINE_INTEN_A_INDEXED:
       has_alpha1 = TRUE;
-      has_alpha2 = FALSE;
       break;
     case COMBINE_INTEN_INTEN_A:
     case COMBINE_INDEXED_INDEXED_A:
       has_alpha1 = FALSE;
-      has_alpha2 = TRUE;
       break;
     case COMBINE_INTEN_A_INTEN_A:
     case COMBINE_INDEXED_A_INDEXED_A:
-      has_alpha1 = has_alpha2 = TRUE;
+      has_alpha1 = TRUE;
       break;
     default:
-      has_alpha1 = has_alpha2 = FALSE;
+      has_alpha1 = FALSE;
     }
 
   st.opacity    = opacity;



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