From: Nicklas Avén Date: Mon, 10 Mar 2014 19:31:03 +0000 (+0000) Subject: #2670 cleaning some code X-Git-Tag: 2.2.0rc1~1196 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20397117bb31f39e40f734e71e07299b760ab750;p=postgis #2670 cleaning some code git-svn-id: http://svn.osgeo.org/postgis/trunk@12319 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_accum.c b/postgis/lwgeom_accum.c index 41ea53a20..6592ae6ba 100644 --- a/postgis/lwgeom_accum.c +++ b/postgis/lwgeom_accum.c @@ -171,7 +171,6 @@ pgis_twkb_accum_transfn(PG_FUNCTION_ARGS) MemoryContext oldcontext; twkb_state* state; int32 newlen; - GSERIALIZED *geom; uint8_t variant = 0; @@ -216,9 +215,6 @@ if (!AggCheckCallContext(fcinfo, &aggcontext)) if (!PG_ARGISNULL(1)) { - - geom = (GSERIALIZED*)PG_DETOAST_DATUM(PG_GETARG_DATUM(1)); - ((state->geoms)+state->n_rows)->geom = PG_ARGISNULL(1) ? (Datum) 0 : PointerGetDatum(PG_DETOAST_DATUM_COPY(PG_GETARG_DATUM(1)));