]> granicus.if.org Git - postgis/commitdiff
removed useless strchr call in LWGEOM_in
authorSandro Santilli <strk@keybit.net>
Tue, 19 Jul 2005 11:25:35 +0000 (11:25 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 19 Jul 2005 11:25:35 +0000 (11:25 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@1819 b70326c6-7e19-0410-871a-916f4a2858ee

CHANGES
lwgeom/lwgeom_inout.c

diff --git a/CHANGES b/CHANGES
index fbfb3d3621c5d923b351d300085d8a50047d4551..3404366cef9073dec503e51ecdf510bbe7c2b40e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,7 @@ PostGIS 1.0.3
 ????/??/??
        - Bugfix in dumper handling of user-defined queries 
        - Bugfix in create_undef.pl script
+       - Small performance improvement in canonical input function
 
 PostGIS 1.0.2
 2005/07/04
index a538a70a758e233274595a6be677243f51039c67..f218d5d66f7e894a22c23e977d109f95928eb276 100644 (file)
@@ -66,21 +66,8 @@ PG_FUNCTION_INFO_V1(LWGEOM_in);
 Datum LWGEOM_in(PG_FUNCTION_ARGS)
 {
        char *str = PG_GETARG_CSTRING(0);
-       char *semicolonLoc,start;
        PG_LWGEOM *ret;
 
-       //determine if its WKB or WKT
-
-       semicolonLoc = strchr(str,';');
-       if (semicolonLoc == NULL)
-       {
-               start=str[0];
-       }
-       else
-       {
-               start=semicolonLoc[1]; // one in
-       }
-
        // will handle both EWKB and EWKT
        ret = (PG_LWGEOM *)parse_lwgeom_wkt(str);