diff --git a/src/libraries/JANA/Topology/JTopologyBuilder.cc b/src/libraries/JANA/Topology/JTopologyBuilder.cc index 451b7fd82..2060fe178 100644 --- a/src/libraries/JANA/Topology/JTopologyBuilder.cc +++ b/src/libraries/JANA/Topology/JTopologyBuilder.cc @@ -28,9 +28,6 @@ JTopologyBuilder::~JTopologyBuilder() { for (auto pool : pools) { delete pool; } - if (event_pool != nullptr) { - delete event_pool; - } } std::string JTopologyBuilder::print_topology() { @@ -92,8 +89,6 @@ void JTopologyBuilder::create_topology() { mapping.initialize(static_cast(m_affinity), static_cast(m_locality)); - event_pool = new JEventPool(m_components, m_max_inflight_events, m_location_count); - if (m_configure_topology) { m_configure_topology(*this); LOG_WARN(GetLogger()) << "Found custom topology configurator! Modified arrow topology is: \n" << print_topology() << LOG_END; diff --git a/src/libraries/JANA/Topology/JTopologyBuilder.h b/src/libraries/JANA/Topology/JTopologyBuilder.h index 685efc09f..59a5c8bd0 100644 --- a/src/libraries/JANA/Topology/JTopologyBuilder.h +++ b/src/libraries/JANA/Topology/JTopologyBuilder.h @@ -40,7 +40,6 @@ class JTopologyBuilder : public JService { // Things that probably shouldn't be here std::function m_configure_topology; - JEventPool* event_pool = nullptr; // TODO: Move into pools eventually JProcessorMapping mapping; public: