Commit 46737c93 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Module: remove outdated get_dut()

parent 948117ee
......@@ -70,15 +70,6 @@ std::shared_ptr<Detector> Module::get_reference() {
return m_reference;
}
std::shared_ptr<Detector> Module::get_dut() {
auto it = find_if(m_detectors.begin(), m_detectors.end(), [](std::shared_ptr<Detector> obj) { return obj->isDUT(); });
if(it == m_detectors.end()) {
return nullptr;
}
return (*it);
}
bool Module::has_detector(std::string name) {
auto it = find_if(
m_detectors.begin(), m_detectors.end(), [&name](std::shared_ptr<Detector> obj) { return obj->name() == name; });
......
......@@ -156,13 +156,6 @@ namespace corryvreckan {
*/
std::shared_ptr<Detector> get_reference();
/**
* @brief Get the device under test
* @return Pointer to the DUT detector. A nullptr is returned if no DUT is found.
* FIXME This should allow retrieval of a vector of DUTs
*/
std::shared_ptr<Detector> get_dut();
/**
* @brief Check if this module should act on a given detector
* @param name Name of the detector to check
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment