Index: trunk/ippTools/src/p2searchRawFrames.c
===================================================================
--- trunk/ippTools/src/p2searchRawFrames.c	(revision 6258)
+++ 	(revision )
@@ -1,40 +1,0 @@
-#include "pxtools.h"
-
-// select raw frames (exposure+images) which match the given config options
-psArray *p2searchRawFrames(pxConfig *config) {
-    PS_ASSERT_PTR_NON_NULL(config, NULL);
-
-    psArray *exposures = rawScienceExpSelectRowObjects(config->database,
-        config->where, MAX_ROWS);
-    if (!exposures) {
-        psError(PS_ERR_UNKNOWN, false, "no rawScienceExp rows found");
-
-        return NULL;
-    }
-
-    // output array of rawScienceFrame
-    psArray *frames = psArrayAlloc(exposures->n);
-    frames->n = 0;
-
-    // 'where' to select each exposure
-    psMetadata *where = psMetadataAlloc ();
-    for (int i = 0; i < exposures->n; i++) {
-        rawScienceExpRow *exposure = exposures->data[i];
-
-        psMetadataAddStr(where, PS_LIST_TAIL, "exp_id", PS_META_REPLACE, "==",
-            exposure->exp_id);
-
-        psArray *images = rawImfileSelectRowObjects(config->database, where,
-            MAX_ROWS);
-        if (!images) {
-            psError(PS_ERR_UNKNOWN, false, "database access failed");
-
-            return NULL;
-        }
-
-        rawScienceFrame *rawFrame = rawScienceFrameAlloc(exposure, images);
-        psArrayAdd(frames, 100, rawFrame);
-    }
-
-    return frames;
-} 
