Index: branches/eam_branches/ipp-20100621/psphot/src/psphot.h
===================================================================
--- branches/eam_branches/ipp-20100621/psphot/src/psphot.h	(revision 28799)
+++ branches/eam_branches/ipp-20100621/psphot/src/psphot.h	(revision 28821)
@@ -328,6 +328,4 @@
 
 bool psphotFitSourcesLinearStack (pmConfig *config, psArray *objects, bool final);
-int pmPhotObjSortBySN (const void **a, const void **b);
-int pmPhotObjSortByX (const void **a, const void **b);
 
 typedef enum {
Index: branches/eam_branches/ipp-20100621/psphot/src/psphotFitSourcesLinearStack.c
===================================================================
--- branches/eam_branches/ipp-20100621/psphot/src/psphotFitSourcesLinearStack.c	(revision 28799)
+++ branches/eam_branches/ipp-20100621/psphot/src/psphotFitSourcesLinearStack.c	(revision 28821)
@@ -170,17 +170,2 @@
     return true;
 }
-
-// sort by X (ascending)
-int pmPhotObjSortByX (const void **a, const void **b)
-{
-    pmPhotObj *objA = *(pmPhotObj **)a;
-    pmPhotObj *objB = *(pmPhotObj **)b;
-
-    psF32 fA = objA->x;
-    psF32 fB = objB->x;
-
-    psF32 diff = fA - fB;
-    if (diff > FLT_EPSILON) return (+1);
-    if (diff < FLT_EPSILON) return (-1);
-    return (0);
-}
