Skip to content
Snippets Groups Projects
Commit 7d0f80b4 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Remove destruct() that were commented

parent 5065421a
No related branches found
No related tags found
No related merge requests found
...@@ -25,17 +25,6 @@ CaptureBase::~CaptureBase() ...@@ -25,17 +25,6 @@ CaptureBase::~CaptureBase()
std::cout << "destructed -C" << id() << std::endl; std::cout << "destructed -C" << id() << std::endl;
} }
//void CaptureBase::destruct()
//{
// if (!is_removing_)
// {
// if (frame_ptr_ != nullptr)
// frame_ptr_->removeCapture(this);
// else
// delete this;
// }
//}
void CaptureBase::process() void CaptureBase::process()
{ {
// Call all processors assigned to the sensor that captured this data // Call all processors assigned to the sensor that captured this data
......
...@@ -69,23 +69,6 @@ void FeatureBase::remove() ...@@ -69,23 +69,6 @@ void FeatureBase::remove()
} }
} }
//void FeatureBase::destruct()
//{
// if (!is_removing_)
// {
// if (capture_ptr_ != nullptr) // && !up_node_ptr_->isTop())
// {
// //std::cout << "upper node is not WolfProblem " << std::endl;
// capture_ptr_->removeFeature(this);
// }
// else
// {
// //std::cout << "upper node is WolfProblem or nullptr" << std::endl;
// delete this;
// }
// }
//}
ConstraintBasePtr FeatureBase::addConstraint(ConstraintBasePtr _co_ptr) ConstraintBasePtr FeatureBase::addConstraint(ConstraintBasePtr _co_ptr)
{ {
constraint_list_.push_back(_co_ptr); constraint_list_.push_back(_co_ptr);
......
...@@ -264,17 +264,6 @@ FrameBasePtr FrameBase::getNextFrame() const ...@@ -264,17 +264,6 @@ FrameBasePtr FrameBase::getNextFrame() const
return nullptr; return nullptr;
} }
//void FrameBase::destruct()
//{
// if (!is_removing_)
// {
// if (trajectory_ptr_ != nullptr) // && !up_node_ptr_->isTop())
// trajectory_ptr_->removeFrame(this);
// else
// delete this;
// }
//}
void FrameBase::setStatus(StateStatus _st) void FrameBase::setStatus(StateStatus _st)
{ {
// TODO: Separate the three fixes and unfixes to the wolfproblem lists // TODO: Separate the three fixes and unfixes to the wolfproblem lists
......
...@@ -213,23 +213,6 @@ inline const Eigen::VectorXs& LandmarkBase::getDescriptor() const ...@@ -213,23 +213,6 @@ inline const Eigen::VectorXs& LandmarkBase::getDescriptor() const
return descriptor_; return descriptor_;
} }
//inline void LandmarkBase::destruct()
//{
// if (!is_removing_)
// {
// if (map_ptr_ != nullptr) // && !up_node_ptr_->isTop())
// {
// //std::cout << "upper node is not WolfProblem " << std::endl;
// map_ptr_->removeLandmark(shared_from_this());
// }
// else
// {
// //std::cout << "upper node is WolfProblem or nullptr" << std::endl;
// // delete this;
// }
// }
//}
inline const LandmarkType LandmarkBase::getTypeId() const inline const LandmarkType LandmarkBase::getTypeId() const
{ {
return type_id_; return type_id_;
......
...@@ -57,11 +57,6 @@ Problem::~Problem() ...@@ -57,11 +57,6 @@ Problem::~Problem()
// map_ptr_->remove(); // map_ptr_->remove();
} }
//void Problem::destruct()
//{
// delete this;
//}
void Problem::addSensor(SensorBasePtr _sen_ptr) void Problem::addSensor(SensorBasePtr _sen_ptr)
{ {
getHardwarePtr()->addSensor(_sen_ptr); getHardwarePtr()->addSensor(_sen_ptr);
......
...@@ -97,24 +97,6 @@ inline wolf::ProblemPtr ProcessorBase::getProblem() ...@@ -97,24 +97,6 @@ inline wolf::ProblemPtr ProcessorBase::getProblem()
return prb; return prb;
} }
//inline void ProcessorBase::destruct()
//{
// if (!is_removing_)
// {
// if (sensor_ptr_ != nullptr) // && !up_node_ptr_->isTop())
// {
// //std::cout << "upper node is not WolfProblem " << std::endl;
// sensor_ptr_->removeProcessor(this);
// }
// else
// {
// //std::cout << "upper node is WolfProblem or nullptr" << std::endl;
// delete this;
// }
// }
//}
inline bool ProcessorBase::isMotion() inline bool ProcessorBase::isMotion()
{ {
return false; return false;
......
...@@ -200,17 +200,6 @@ inline Eigen::VectorXs SensorBase::getNoiseStd() ...@@ -200,17 +200,6 @@ inline Eigen::VectorXs SensorBase::getNoiseStd()
return noise_std_; return noise_std_;
} }
//inline void SensorBase::destruct()
//{
// if (!is_removing_)
// {
// if (hardware_ptr_ != nullptr)
// hardware_ptr_->removeSensor(shared_from_this());
// else
// delete this;
// }
//}
inline Eigen::MatrixXs SensorBase::getNoiseCov() inline Eigen::MatrixXs SensorBase::getNoiseCov()
{ {
return noise_cov_; return noise_cov_;
......
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