Index: branches/pap/psModules/src/imcombine/pmSubtractionEquation.c
===================================================================
--- branches/pap/psModules/src/imcombine/pmSubtractionEquation.c	(revision 25857)
+++ branches/pap/psModules/src/imcombine/pmSubtractionEquation.c	(revision 25858)
@@ -376,26 +376,5 @@
     return true;
 }
-#endif
-
-
-// Calculate the sum over a stamp product
-static inline double calculateSumProduct(const psKernel *image1, // First image in multiplication
-                                         const psKernel *image2, // Second image in multiplication
-                                         const psKernel *variance, // Variance image
-                                         int footprint // (Half-)Size of stamp
-    )
-{
-    double sum = 0.0;                   // Sum of the image products
-    for (int y = - footprint; y <= footprint; y++) {
-        for (int x = - footprint; x <= footprint; x++) {
-            double value = image1->kernel[y][x] * image2->kernel[y][x];
-#ifdef USE_VARIANCE
-            value /= variance->kernel[y][x];
-#endif
-            sum += value;
-        }
-    }
-    return sum;
-}
+
 
 // Add in penalty term to least-squares vector
