Index: trunk/ippTools/share/warptool_revertwarped_delete.sql
===================================================================
--- trunk/ippTools/share/warptool_revertwarped_delete.sql	(revision 24226)
+++ trunk/ippTools/share/warptool_revertwarped_delete.sql	(revision 24239)
@@ -6,4 +6,5 @@
     AND camRun.chip_id = chipRun.chip_id
     AND chipRun.exp_id = rawExp.exp_id
+    AND warpRun.state = 'new'
     AND warpSkyfile.fault != 0
 
Index: trunk/ippTools/src/warptool.c
===================================================================
--- trunk/ippTools/src/warptool.c	(revision 24226)
+++ trunk/ippTools/src/warptool.c	(revision 24239)
@@ -1225,7 +1225,8 @@
 
 
+#ifdef notdef
+    int numUpdated = 0;                     // Number updated
+    {
     // Update state to 'new'
-    int numUpdated;                     // Number updated
-    {
         // This query is no longer necessary because we do not set warpRun's to full statte
         // if they have faulted skyfiles.
@@ -1273,4 +1274,6 @@
     psLogMsg("warptool", PS_LOG_INFO, "Updated %d warp runs", numUpdated);
 
+#endif // notdef
+
     // Delete product
     int numDeleted;                     // Number deleted
