]> granicus.if.org Git - postgis/commitdiff
Removed duplicate debugging code used to reset the cache when it was full
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 17 Nov 2005 23:35:23 +0000 (23:35 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 17 Nov 2005 23:35:23 +0000 (23:35 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2045 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_transform.c

index 549fe6f518bbb35f2d308f05c69a0e9cedfbfcc8..1348d76e809cedc4766ea9c6f33195df67fc17a8 100644 (file)
@@ -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;