Commit 5c7ca5ab authored by Micha Müller's avatar Micha Müller
Browse files

Minor fix: remove obsolete calls to releaseSensors()

parent 8e877ac4
...@@ -199,7 +199,6 @@ class ConfiguratorTemplate : public ConfiguratorInterface { ...@@ -199,7 +199,6 @@ class ConfiguratorTemplate : public ConfiguratorInterface {
<< val.second.data() << " could not be read! Omitting"; << val.second.data() << " could not be read! Omitting";
} }
} else { } else {
group->releaseSensors();
sensor = std::make_shared<SBase>(val.second.data()); sensor = std::make_shared<SBase>(val.second.data());
if (readSensorBase(*sensor, val.second)) { if (readSensorBase(*sensor, val.second)) {
group->pushBackSensor(sensor); group->pushBackSensor(sensor);
......
...@@ -230,7 +230,6 @@ class ConfiguratorTemplateEntity : public ConfiguratorTemplate<SBase, SGroup> { ...@@ -230,7 +230,6 @@ class ConfiguratorTemplateEntity : public ConfiguratorTemplate<SBase, SGroup> {
<< val.second.data() << " could not be read! Omitting"; << val.second.data() << " could not be read! Omitting";
} }
} else { } else {
group->releaseSensors();
sensor = std::make_shared<SBase>(val.second.data()); sensor = std::make_shared<SBase>(val.second.data());
if (readSensorBase(*sensor, val.second)) { if (readSensorBase(*sensor, val.second)) {
group->pushBackSensor(sensor); group->pushBackSensor(sensor);
...@@ -433,7 +432,6 @@ class ConfiguratorTemplateEntity : public ConfiguratorTemplate<SBase, SGroup> { ...@@ -433,7 +432,6 @@ class ConfiguratorTemplateEntity : public ConfiguratorTemplate<SBase, SGroup> {
<< val.second.data() << " could not be read! Omitting"; << val.second.data() << " could not be read! Omitting";
} }
} else { } else {
group->releaseSensors();
sensor = std::make_shared<SBase>(val.second.data()); sensor = std::make_shared<SBase>(val.second.data());
if (readSensorBase(*sensor, val.second)) { if (readSensorBase(*sensor, val.second)) {
group->pushBackSensor(sensor); group->pushBackSensor(sensor);
......
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