Index: /trunk/archive/psdb/psDB.c
===================================================================
--- /trunk/archive/psdb/psDB.c	(revision 3249)
+++ /trunk/archive/psdb/psDB.c	(revision 3250)
@@ -8,6 +8,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-02-17 03:20:56 $
+ *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-02-17 03:22:06 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -67,5 +67,4 @@
 static psPtr    psDBGetPTypeNaN(psElemType pType);
 static bool     psDBIsPTypeNaN(psElemType pType, psPtr data);
-static char    *psDBPTypeAsString(psPtr data, psElemType pType);
 
 // string utility functions
@@ -1545,63 +1544,4 @@
 }
 
-#define PS_PTYPE_TO_STR(type, format, data) \
-    (size_t)log10((double)*(type *)data) + 1; \
-    string = psAlloc(length); \
-    snprintf(string, length, format, *(type *)data);
-
-static char *psDBPTypeAsString(psPtr data, psElemType pType)
-{
-    size_t          length;
-    char            *string;
-
-    // formats are a portability issue
-    switch (pType) {
-        case PS_TYPE_S8:
-            length = PS_PTYPE_TO_STR(psS8, "%i", data);
-            break;
-        case PS_TYPE_S16:
-            length = PS_PTYPE_TO_STR(psS16, "%i", data);
-            break;
-        case PS_TYPE_S32:
-            length = PS_PTYPE_TO_STR(psS32, "%i", data);
-            break;
-        case PS_TYPE_S64:
-            length = PS_PTYPE_TO_STR(psS64, "%li", data);
-            break;
-        case PS_TYPE_U8:
-            length = PS_PTYPE_TO_STR(psU8, "%u", data);
-            break;
-        case PS_TYPE_U16:
-            length = PS_PTYPE_TO_STR(psU16, "%u", data);
-            break;
-        case PS_TYPE_U32:
-            length = PS_PTYPE_TO_STR(psU32, "%u", data);
-            break;
-        case PS_TYPE_U64:
-            length = PS_PTYPE_TO_STR(psU64, "%lu", data);
-            break;
-        case PS_TYPE_F32:
-            length = PS_PTYPE_TO_STR(psF32, "%f", data);
-            break;
-        case PS_TYPE_F64:
-            length = PS_PTYPE_TO_STR(psF32, "%f", data);
-            break;
-        case PS_TYPE_C32:
-            // this is a bogus SQL type
-            break;
-        case PS_TYPE_C64:
-            // this is a bogus SQL type
-            break;
-        case PS_TYPE_BOOL:
-            length = PS_PTYPE_TO_STR(bool, "%u", data);
-            break;
-        case PS_TYPE_PTR:
-            // unsafe to convert unless it's a string
-            break;
-    }
-
-    return string;
-}
-
 
 // string utility functions
