Index: /branches/rel10_ifa/psModules/src/astrom/pmFPARead.c
===================================================================
--- /branches/rel10_ifa/psModules/src/astrom/pmFPARead.c	(revision 6620)
+++ /branches/rel10_ifa/psModules/src/astrom/pmFPARead.c	(revision 6621)
@@ -7,4 +7,5 @@
 #include "pmFPARead.h"
 #include "pmConcepts.h"
+#include "psRegionIsBad.h"
 
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -137,9 +138,4 @@
 #endif
 
-static bool badRegion(const psRegion *region)
-{
-    return isnan(region->x0) || isnan(region->x1) || isnan(region->y0) || isnan(region->y1);
-}
-
 // Carve a readout from the image pixels
 static pmReadout *readoutCarve(pmCell *cell, // Cell into which the new readout will be placed
@@ -152,5 +148,5 @@
 
     // The image corresponding to the trim region
-    if (badRegion(trimsec)) {
+    if (psRegionIsBad(*trimsec)) {
         psString regionString = psRegionToString(*trimsec);
         psError(PS_ERR_IO, true, "Invalid trim section: %s\n", regionString);
@@ -165,5 +161,5 @@
     psRegion *biassec = NULL;       // A BIASSEC region from the list
     while ((biassec = psListGetAndIncrement(iter))) {
-        if (badRegion(trimsec)) {
+        if (psRegionIsBad(*biassec)) {
             psString regionString = psRegionToString(*biassec);
             psError(PS_ERR_IO, true, "Invalid bias section: %s\n", regionString);
@@ -268,4 +264,8 @@
 }
 
+
+#if 0
+// Don't know that we need these
+
 // Read the PHU into the nominated HDU
 static bool readPHU(pmHDU *hdu,         // HDU to read into
@@ -310,5 +310,5 @@
     return readPHU(fpa->hdu, fits);
 }
-
+#endif
 
 
