[geos-commits] r3329 - in trunk: include/geos/geomgraph src/geomgraph

svn_geos at osgeo.org svn_geos at osgeo.org
Fri May 6 14:51:19 EDT 2011


Author: strk
Date: 2011-05-06 11:51:19 -0700 (Fri, 06 May 2011)
New Revision: 3329

Modified:
   trunk/include/geos/geomgraph/GeometryGraph.h
   trunk/src/geomgraph/GeometryGraph.cpp
Log:
Drop book keeping of segment intersectors, as we're transferring their ownership to caller anyway

Modified: trunk/include/geos/geomgraph/GeometryGraph.h
===================================================================
--- trunk/include/geos/geomgraph/GeometryGraph.h	2011-05-06 08:57:33 UTC (rev 3328)
+++ trunk/include/geos/geomgraph/GeometryGraph.h	2011-05-06 18:51:19 UTC (rev 3329)
@@ -109,8 +109,6 @@
 
 	geom::Coordinate invalidPoint; 
 
-	std::vector<index::SegmentIntersector*> newSegmentIntersectors;
-
 	/// Allocates a new EdgeSetIntersector. Remember to delete it!
 	index::EdgeSetIntersector* createEdgeSetIntersector();
 

Modified: trunk/src/geomgraph/GeometryGraph.cpp
===================================================================
--- trunk/src/geomgraph/GeometryGraph.cpp	2011-05-06 08:57:33 UTC (rev 3328)
+++ trunk/src/geomgraph/GeometryGraph.cpp	2011-05-06 18:51:19 UTC (rev 3329)
@@ -379,7 +379,6 @@
 	cerr<<"GeometryGraph::computeEdgeIntersections call"<<endl;
 #endif
 	SegmentIntersector *si=new SegmentIntersector(li, includeProper, true);
-	newSegmentIntersectors.push_back(si);
 
 	si->setBoundaryNodes(getBoundaryNodes(), g->getBoundaryNodes());
 	auto_ptr<EdgeSetIntersector> esi(createEdgeSetIntersector());



More information about the geos-commits mailing list