diff --git a/siteupdate/cplusplus/classes/GraphGeneration/HGVertex.cpp b/siteupdate/cplusplus/classes/GraphGeneration/HGVertex.cpp index cc5faa2b..19d40279 100644 --- a/siteupdate/cplusplus/classes/GraphGeneration/HGVertex.cpp +++ b/siteupdate/cplusplus/classes/GraphGeneration/HGVertex.cpp @@ -24,8 +24,6 @@ HGVertex::HGVertex(Waypoint *wpt, const std::string *n, unsigned int numthreads) first_waypoint = wpt; if (!wpt->colocated) { if (!wpt->is_hidden) visibility = 2; - regions.insert(wpt->route->region); - systems.insert(wpt->route->system); wpt->route->region->vertices.insert(this); wpt->route->system->vertices.insert(this); return; @@ -33,8 +31,6 @@ HGVertex::HGVertex(Waypoint *wpt, const std::string *n, unsigned int numthreads) for (Waypoint *w : *(wpt->colocated)) { // will consider hidden iff all colocated waypoints are hidden if (!w->is_hidden) visibility = 2; - regions.insert(w->route->region); - systems.insert(w->route->system); w->route->region->vertices.insert(this); w->route->system->vertices.insert(this); } @@ -61,6 +57,4 @@ HGVertex::~HGVertex() while (incident_c_edges.size()) delete incident_c_edges.front(); delete[] s_vertex_num; delete[] c_vertex_num; - regions.clear(); - systems.clear(); } diff --git a/siteupdate/cplusplus/classes/GraphGeneration/HGVertex.h b/siteupdate/cplusplus/classes/GraphGeneration/HGVertex.h index f4f90eab..155443d1 100644 --- a/siteupdate/cplusplus/classes/GraphGeneration/HGVertex.h +++ b/siteupdate/cplusplus/classes/GraphGeneration/HGVertex.h @@ -15,8 +15,6 @@ class HGVertex const std::string *unique_name; char visibility; Waypoint *first_waypoint; - std::unordered_set regions; - std::unordered_set systems; std::list incident_s_edges; // simple std::list incident_c_edges; // collapsed std::list incident_t_edges; // traveled diff --git a/siteupdate/python-teresco/siteupdate.py b/siteupdate/python-teresco/siteupdate.py index 7e1cb8ae..b553d0ce 100755 --- a/siteupdate/python-teresco/siteupdate.py +++ b/siteupdate/python-teresco/siteupdate.py @@ -1696,16 +1696,12 @@ def __init__(self,wpt,unique_name,datacheckerrors,rg_vset_hash): # note: if saving the first waypoint, no longer need # lat & lng and can replace with methods self.first_waypoint = wpt - self.regions = set() - self.systems = set() self.incident_s_edges = [] # simple self.incident_c_edges = [] # collapsed self.incident_t_edges = [] # traveled if wpt.colocated is None: if not wpt.is_hidden: self.visibility = 2 - self.regions.add(wpt.route.region) - self.systems.add(wpt.route.system) wpt.route.system.vertices.add(self) if wpt.route.region not in rg_vset_hash: rg_vset_hash[wpt.route.region] = set() @@ -1717,8 +1713,6 @@ def __init__(self,wpt,unique_name,datacheckerrors,rg_vset_hash): # will consider hidden iff all colocated waypoints are hidden if not w.is_hidden: self.visibility = 2 - self.regions.add(w.route.region) - self.systems.add(w.route.system) if w.route.region not in rg_vset_hash: rg_vset_hash[w.route.region] = set() rg_vset_hash[w.route.region].add(self)