Index: /branches/end_stage/ippTools/src/regtool.c
===================================================================
--- /branches/end_stage/ippTools/src/regtool.c	(revision 16147)
+++ /branches/end_stage/ippTools/src/regtool.c	(revision 16148)
@@ -495,5 +495,4 @@
 
     // optional
-    PXOPT_LOOKUP_BOOL(detrend, config->args, "-detrend", false);
     PXOPT_LOOKUP_STR(dvodb, config->args, "-dvodb", false, false);
     PXOPT_LOOKUP_STR(tess_id, config->args, "-tess_id", false, false);
@@ -700,14 +699,5 @@
     }
 
-    // if this is a detrend image don't put it in the chip queue (and we're
-    // done)
-    if (detrend) {
-        psFree(newExp);
-        if (!psDBCommit(config->dbh)) {
-            psError(PS_ERR_UNKNOWN, false, "database error");
-            return false;
-        }
-        return true;
-    }
+    // XXX handle end_stage here
 
     // insert an entry into the chipPendingExp table
Index: /branches/end_stage/ippTools/src/regtoolConfig.c
===================================================================
--- /branches/end_stage/ippTools/src/regtoolConfig.c	(revision 16147)
+++ /branches/end_stage/ippTools/src/regtoolConfig.c	(revision 16148)
@@ -334,6 +334,4 @@
         "define URL", NULL);
     */
-    psMetadataAddBool(addprocessedexpArgs, PS_LIST_TAIL, "-detrend",  0,
-        "declare this as detrend data", false);
 
     // -processedexp
