Remove unneccessar branch in CoreCH code
This commit is contained in:
parent
c2a5cc034a
commit
93cdd8bb46
@ -57,8 +57,6 @@ template <> class AlgorithmDataFacade<algorithm::CoreCH>
|
||||
using EdgeData = contractor::QueryEdge::EdgeData;
|
||||
|
||||
virtual bool IsCoreNode(const NodeID id) const = 0;
|
||||
|
||||
virtual std::size_t GetCoreSize() const = 0;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -175,15 +175,9 @@ class ContiguousInternalMemoryAlgorithmDataFacade<algorithm::CoreCH>
|
||||
|
||||
bool IsCoreNode(const NodeID id) const override final
|
||||
{
|
||||
if (m_is_core_node.size() > 0)
|
||||
{
|
||||
return m_is_core_node.at(id);
|
||||
BOOST_ASSERT(id < m_is_core_node.size());
|
||||
return m_is_core_node[id];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
std::size_t GetCoreSize() const override final { return m_is_core_node.size(); }
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -289,7 +289,6 @@ class MockAlgorithmDataFacade<engine::algorithm::CoreCH>
|
||||
|
||||
public:
|
||||
bool IsCoreNode(const NodeID /* id */) const override { return false; }
|
||||
std::size_t GetCoreSize() const override { return 0; }
|
||||
};
|
||||
|
||||
template <typename AlgorithmT>
|
||||
|
Loading…
Reference in New Issue
Block a user