Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
46737c93
Commit
46737c93
authored
Nov 09, 2018
by
Simon Spannagel
Browse files
Module: remove outdated get_dut()
parent
948117ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/core/module/Module.cpp
View file @
46737c93
...
...
@@ -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
;
});
...
...
src/core/module/Module.hpp
View file @
46737c93
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment