Index: trunk/psModules/src/detrend/pmPattern.c
===================================================================
--- trunk/psModules/src/detrend/pmPattern.c	(revision 43036)
+++ trunk/psModules/src/detrend/pmPattern.c	(revision 43037)
@@ -1217,10 +1217,8 @@
     // Count number of cells to tweak
     int numTweak = 0;                   // Number of cells to tweak
-    int numIgnore = 0;                  // Number of cells to ignore
     for (int i = 0; i < numCells; i++) {
         pmCell *cell = chip->cells->data[i]; // Cell of interest
         if (!cell || !cell->data_exists || !cell->process ||
             cell->readouts->n == 0 || cell->readouts->n > 1 || !cell->readouts->data[0]) {
-            numIgnore++;
             meanMask->data.PS_TYPE_VECTOR_MASK_DATA[i] = PM_PATTERN_IGNORE;
             continue;
