Skip to content
Snippets Groups Projects
Commit fe8e637c authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

removed SensorBase::remove(), forbiden

parent 317fca21
No related branches found
No related tags found
1 merge request!243Constraint prior sensor params
...@@ -67,30 +67,6 @@ SensorBase::~SensorBase() ...@@ -67,30 +67,6 @@ SensorBase::~SensorBase()
removeStateBlocks(); removeStateBlocks();
} }
void SensorBase::remove()
{
if (!is_removing_)
{
is_removing_ = true;
SensorBasePtr this_S = shared_from_this(); // protect it while removing links
// Remove State Blocks
removeStateBlocks();
// remove from upstream
auto H = hardware_ptr_.lock();
if (H)
H->getSensorList().remove(this_S);
// remove downstream processors
while (!processor_list_.empty())
{
processor_list_.front()->remove();
}
}
}
void SensorBase::removeStateBlocks() void SensorBase::removeStateBlocks()
{ {
for (unsigned int i = 0; i < state_block_vec_.size(); i++) for (unsigned int i = 0; i < state_block_vec_.size(); i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment