Index: /trunk/ippTools/src/chiptool.c
===================================================================
--- /trunk/ippTools/src/chiptool.c	(revision 8044)
+++ /trunk/ippTools/src/chiptool.c	(revision 8045)
@@ -156,9 +156,12 @@
 static bool doneMode(pxConfig *config)
 {
-    // get exp_id/class/class_id/uri from the CLI // add the completed imfile to
-    // the p2DoneImfile tables // remove corresponding entries from the
-    // p2PendingImfile table // check to see if any p2PendingExps have no
-    // associated p2PendingImfiles //    if so move the p2PendingExp(s) to
-    // p2DoneExp
+    // get exp_id/class/class_id/uri from the CLI
+    // add the completed imfile to
+    // the p2DoneImfile tables
+    // remove corresponding entries from the
+    // p2PendingImfile table 
+    // check to see if any p2PendingExps have no
+    // associated p2PendingImfiles 
+    // if so move the p2PendingExp(s) to p2DoneExp
 
     // find pending
@@ -239,2 +242,29 @@
     return true;
 }
+
+// XXX the filename layout is defined by this code
+psArray *p2pendingToDoneImfile(psArray *pendingImfiles)
+{
+    PS_ASSERT_PTR_NON_NULL(pendingImfiles, NULL);
+
+    psArray *doneImfiles = psArrayAlloc(pendingImfiles->n);
+    doneImfiles->n = 0;
+
+    for (int i = 0; i < pendingImfiles->n; i++) {
+        p2PendingImfileRow *pendingImfile = pendingImfiles->data[i];
+
+        p2DoneImfileRow *doneImfile = p2DoneImfileRowAlloc(
+            pendingImfile->exp_id,
+            pendingImfile->class_id,
+            pendingImfile->uri,
+            "my recipe", // recipe
+            "my stats", // stats
+            pendingImfile->p1_version,
+            pendingImfile->p2_version
+        );
+
+        psArrayAdd(doneImfiles, 100, doneImfile);
+    }
+
+    return doneImfiles;
+}
Index: /trunk/ippTools/src/p2pendingToDone.c
===================================================================
--- /trunk/ippTools/src/p2pendingToDone.c	(revision 8044)
+++ /trunk/ippTools/src/p2pendingToDone.c	(revision 8045)
@@ -64,31 +64,4 @@
 }
 
-// XXX the filename layout is defined by this code
-psArray *p2pendingToDoneImfile(psArray *pendingImfiles)
-{
-    PS_ASSERT_PTR_NON_NULL(pendingImfiles, NULL);
-
-    psArray *doneImfiles = psArrayAlloc(pendingImfiles->n);
-    doneImfiles->n = 0;
-
-    for (int i = 0; i < pendingImfiles->n; i++) {
-        p2PendingImfileRow *pendingImfile = pendingImfiles->data[i];
-
-        p2DoneImfileRow *doneImfile = p2DoneImfileRowAlloc(
-            pendingImfile->exp_id,
-            pendingImfile->class_id,
-            pendingImfile->uri,
-            "my recipe", // recipe
-            "my stats", // stats
-            pendingImfile->p1_version,
-            pendingImfile->p2_version
-        );
-
-        psArrayAdd(doneImfiles, 100, doneImfile);
-    }
-
-    return doneImfiles;
-}
-
 p2DoneExpRow *p2pendingToDoneExp(p2PendingExpRow *pendingExp)
 {
Index: /trunk/ippTools/src/pxtools.h
===================================================================
--- /trunk/ippTools/src/pxtools.h	(revision 8044)
+++ /trunk/ippTools/src/pxtools.h	(revision 8045)
@@ -124,5 +124,4 @@
 psArray *p2searchDoneFrames(pxConfig *config);
 psArray *p2searchPendingImfiles(pxConfig *config);
-psArray *p2pendingToDoneImfile(psArray *pendingImfiles);
 psArray *p2searchPendingExp(pxConfig *config);
 p2DoneExpRow *p2pendingToDoneExp(p2PendingExpRow *pendingExp);
