Index: /branches/eam_branches/20091201/psphot/src/psphotFindDetections.c
===================================================================
--- /branches/eam_branches/20091201/psphot/src/psphotFindDetections.c	(revision 26539)
+++ /branches/eam_branches/20091201/psphot/src/psphotFindDetections.c	(revision 26540)
@@ -73,2 +73,22 @@
 // if we use the footprints, the output peaks list contains both old and new peaks,
 // otherwise it only contains the new peaks.
+
+# if 0
+// XXX where do we place the N sets of detections?
+bool psphotFindDetections (pmConfig *config, const pmFPAview *view)
+{
+    bool status = true;
+
+    int num = psMetadataAddS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
+    psAbort (!status, "programming error: must define PSPHOT.INPUT.NUM");
+
+    // loop over the available readouts
+    for (int i = 0; i < num; i++) {
+	if (!psphotFindDetectionsReadout (config, view, "PSPHOT.INPUT", i)) {
+            psError (PSPHOT_ERR_CONFIG, false, "failed to subtract background for PSPHOT.INPUT entry %d", i);
+	    return false;
+	}
+    }
+    return true;
+}
+# endif
