Diff of /ColourBrightness.c [84521e] .. [839d2e] Maximize Restore

  Switch to side-by-side view

--- a/ColourBrightness.c
+++ b/ColourBrightness.c
@@ -95,7 +95,6 @@
   int i; 
   magnolia_struct *magnolia = NULL;
   double *ptrDouble;
-  int var04;
   double var16;
   int ecx;
 
@@ -104,8 +103,6 @@
     return 0;
     
   }
-  
-  var04 = size - 1;
   
   var16 = (size -1 ) / 255.0; /// shouldn't this be a 256?
   
@@ -149,11 +146,9 @@
   double deltaNext;
 
   double var48;
-  int var44;
 
   double tablePrevValue;
   double tableNextValue;
-  int tempInt;
   int nextValueInt;
   int prevValueInt;
 
@@ -191,8 +186,6 @@
   if (fabs(tableNextValue - tablePrevValue) <= 2.0) {
     // if the difference |f(value - 1)  -f(value+1) is too small
 
-    tempInt =  (int)mapTable[value];
-
     if ((int)mapTable[value] == 0xff ) {
       return 0xff;
     }
@@ -246,7 +239,6 @@
   edx = prevValueInt;
 
   var48 = 0;
-  var44 = 0;
 
   //  if ( %edx > %nextValueInt ) /// [(int)tablePrevValue] > [(int)tableNextValue] 
   while ( edx <= nextValueInt ) { /// [(int)tablePrevValue] > [(int)tableNextValue] 
@@ -597,7 +589,6 @@
                         int counterImages, int indexReferenceImage, int parm3, int createCurvesType)
 {
 
-  histograms_struct * ptrHistograms;
   histograms_struct * ptrHistograms2;
   int numberHistograms;
   int index;
@@ -623,8 +614,6 @@
 
   if ( calla.ptrHistograms == 0 )
     return ;
-
-  ptrHistograms = calla.ptrHistograms;
 
   fprintf(debugFile, "\nQuality before optimization:\n");
 
@@ -1416,7 +1405,6 @@
 
       unsigned char *ptrPixel;
       unsigned char *ptrOtherPixel;
-      int ecx;
 
       // We process each currentHistogram
       currentHistogram = ptrHistograms;
@@ -1425,8 +1413,6 @@
 
       ptrPixel = ptrCurrentPixelLineBuffer;
       assert(ptrPixel < imagesDataBuffer + numberImages * bytesPerLine);
-
-      ecx = numberImages;
 
       // for each pixel of each line of each image...
       for (currentImage = 0; currentImage < numberImages ; currentImage++, ptrPixel+= bytesPerLine) {
@@ -1927,7 +1913,6 @@
   unsigned char *pixel;
   int edi;
   double * (mappingCurves[6]);
-  int edx;
   unsigned char *ptrPixel;
   int channel;
   int level;
@@ -1970,8 +1955,6 @@
     printf("**************************Bright\n");
 
     currentRow = 0;
-    
-    edx = currentRow;
     
     while ( currentRow < image->height) {