Index: unk/ippTools/src/p2updatePending.c
===================================================================
--- /trunk/ippTools/src/p2updatePending.c	(revision 10228)
+++ 	(revision )
@@ -1,56 +1,0 @@
-/*
- * p2updatePending.c
- *
- * Copyright (C) 2006  Joshua Hoblitt
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * program; see the file COPYING. If not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include "pxtools.h"
-
-// select pending frames (exposure+images) which are not done, select their done images, count, update
-bool p2updatePendingFrames(pxConfig *config, psArray *pendingFrames) {
-    PS_ASSERT_PTR_NON_NULL(config, false);
-    PS_ASSERT_PTR_NON_NULL(pendingFrames, false);
-
-    psMetadata *where = psMetadataAlloc ();
-
-    // select all of the exposures which are still pending
-    psMetadataAddS32 (where, PS_LIST_TAIL, "STATE", 0, "==", PX_MODE_PENDING);
-    psArray *exposures = p2PendingExpSelectRowObjects (config->dbh, where, MAX_ROWS);
-
-    // we will now select all of the matching images which are done
-    psMetadataAddS32 (where, PS_LIST_TAIL, "STATE", PS_META_REPLACE, "==", PX_MODE_DONE);
-    for (long i = 0; i < exposures->n; i++) {
-	p2PendingExpRow *exposure = exposures->data[i];
-
-	// find the next available version numbers
-	psMetadataAddStr (where, PS_LIST_TAIL, "EXP_ID",     PS_META_REPLACE, "==", exposure->exp_tag);
-	psMetadataAddS32 (where, PS_LIST_TAIL, "P2_VERSION", PS_META_REPLACE, "==", exposure->p2_version);
-	psArray *images = p2PendingImfileSelectRowObjects (config->dbh, where, MAX_ROWS);
-	if (images->n != exposure->imfiles) {
-	    // free things
-	    continue;
-	}
-	// frame is complete, set exposure state to done
-	// XXX add P2 stats here?
-//	exposure->state = PX_MODE_DONE;
-//	p2PendingExposureUpdateRows (config->dbh, exposure);
-    }
-    return true;
-} 
Index: /trunk/ippTools/src/pxtools.h
===================================================================
--- /trunk/ippTools/src/pxtools.h	(revision 10228)
+++ /trunk/ippTools/src/pxtools.h	(revision 10229)
@@ -93,5 +93,4 @@
 bool p2insertPendingFrames (pxConfig *config, psArray *rawFrames);
 bool p2writePendingImages (pxConfig *config, psArray *frames);
-bool p2updatePendingFrames (pxConfig *config, psArray *pendingFrames);
 psArray *p2pendingToDone (pxConfig *config, psArray *pendingFrames);
 bool psTimeIsZero(psTime *time);
