From a41b347566cba1e846ab75e0d4304ce8d60e8a6f Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 19 Jul 2005 11:25:35 +0000 Subject: [PATCH] removed useless strchr call in LWGEOM_in git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@1819 b70326c6-7e19-0410-871a-916f4a2858ee --- CHANGES | 1 + lwgeom/lwgeom_inout.c | 13 ------------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/CHANGES b/CHANGES index fbfb3d362..3404366ce 100644 --- 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 diff --git a/lwgeom/lwgeom_inout.c b/lwgeom/lwgeom_inout.c index a538a70a7..f218d5d66 100644 --- a/lwgeom/lwgeom_inout.c +++ b/lwgeom/lwgeom_inout.c @@ -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); -- 2.40.0