From: Mark Cave-Ayland Date: Thu, 17 Nov 2005 23:35:23 +0000 (+0000) Subject: Removed duplicate debugging code used to reset the cache when it was full X-Git-Tag: pgis_1_1_0~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0262191817b960e7cf47d23ecc63abf017fb75f6;p=postgis Removed duplicate debugging code used to reset the cache when it was full git-svn-id: http://svn.osgeo.org/postgis/trunk@2045 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwgeom_transform.c b/lwgeom/lwgeom_transform.c index 549fe6f51..1348d76e8 100644 --- a/lwgeom/lwgeom_transform.c +++ b/lwgeom/lwgeom_transform.c @@ -420,12 +420,6 @@ void AddToPROJ4SRSCache(PROJ4PortalCache *PROJ4Cache, int srid, int other_srid) #endif AddPJHashEntry(PJMemoryContext, projection); - // Add the item to the portal cache - if (PROJ4Cache->PROJ4SRSCacheCount == PROJ4_CACHE_ITEMS) - { - DeleteFromPROJ4SRSCache(PROJ4Cache, PROJ4Cache->PROJ4SRSCache[0].srid); - } - PROJ4Cache->PROJ4SRSCache[PROJ4Cache->PROJ4SRSCacheCount].srid = srid; PROJ4Cache->PROJ4SRSCache[PROJ4Cache->PROJ4SRSCacheCount].projection = projection; PROJ4Cache->PROJ4SRSCache[PROJ4Cache->PROJ4SRSCacheCount].projection_mcxt = PJMemoryContext;