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

remove removeXxx(), which were commented

parent 1b7f28d3
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,6 @@ class CaptureBase : public NodeBase, public std::enable_shared_from_this<Capture
FeatureBasePtr addFeature(FeatureBasePtr _ft_ptr);
FeatureBaseList& getFeatureList();
void addFeatureList(FeatureBaseList& _new_ft_list);
// void removeFeature(FeatureBasePtr _ft_ptr);
void getConstraintList(ConstraintBaseList& _ctr_list);
......@@ -62,8 +61,6 @@ class CaptureBase : public NodeBase, public std::enable_shared_from_this<Capture
StateBlockPtr getSensorPPtr() const;
StateBlockPtr getSensorOPtr() const;
/** \brief Call all the processors for this Capture
*/
virtual void process();
};
......@@ -109,12 +106,6 @@ inline wolf::StateBlockPtr CaptureBase::getSensorOPtr() const
}
//inline void CaptureBase::removeFeature(FeatureBasePtr _ft_ptr)
//{
// feature_list_.remove(_ft_ptr);
//// delete _ft_ptr;
//}
inline unsigned int CaptureBase::id()
{
return capture_id_;
......
......@@ -78,7 +78,6 @@ class FeatureBase : public NodeBase, public std::enable_shared_from_this<Feature
void setCapturePtr(CaptureBasePtr _cap_ptr){capture_ptr_ = _cap_ptr;}
ConstraintBasePtr addConstraint(ConstraintBasePtr _co_ptr);
// void removeConstraint(ConstraintBasePtr _co_ptr);
ConstraintBaseList& getConstraintList();
void getConstraintList(ConstraintBaseList & _ctr_list);
......@@ -133,12 +132,6 @@ inline unsigned int FeatureBase::id()
return feature_id_;
}
//inline void FeatureBase::removeConstraint(ConstraintBasePtr _co_ptr)
//{
// constraint_list_.remove(_co_ptr);
//// delete _co_ptr;
//}
inline CaptureBasePtr FeatureBase::getCapturePtr() const
{
return capture_ptr_.lock();
......
......@@ -107,8 +107,6 @@ class FrameBase : public NodeBase, public std::enable_shared_from_this<FrameBase
CaptureBaseList& getCaptureList();
CaptureBasePtr addCapture(CaptureBasePtr _capt_ptr);
// void removeCapture(const CaptureBaseIter& _capt_iter);
// void removeCapture(const CaptureBasePtr _capt_ptr);
CaptureBasePtr hasCaptureOf(const SensorBasePtr _sensor_ptr);
void unlinkCapture(CaptureBasePtr _cap_ptr);
......@@ -231,18 +229,6 @@ inline CaptureBasePtr FrameBase::addCapture(CaptureBasePtr _capt_ptr)
return _capt_ptr;
}
//inline void FrameBase::removeCapture(const CaptureBaseIter& _capt_iter)
//{
// //std::cout << "removing capture " << (*_capt_iter)->nodeId() << " from Frame " << nodeId() << std::endl;
// capture_list_.erase(_capt_iter);
//}
//
//inline void FrameBase::removeCapture(const CaptureBasePtr _capt_ptr)
//{
// //std::cout << "removing capture " << (*_capt_iter)->nodeId() << " from Frame " << nodeId() << std::endl;
// capture_list_.remove(_capt_ptr);
//}
inline StateStatus FrameBase::getStatus() const
{
return status_;
......
......@@ -26,9 +26,4 @@ SensorBasePtr HardwareBase::addSensor(SensorBasePtr _sensor_ptr)
return _sensor_ptr;
}
//void HardwareBase::removeSensor(SensorBasePtr _sensor_ptr)
//{
// sensor_list_.remove(_sensor_ptr);
//}
} // namespace wolf
......@@ -25,8 +25,6 @@ class HardwareBase : public NodeBase, public std::enable_shared_from_this<Hardwa
virtual SensorBasePtr addSensor(SensorBasePtr _sensor_ptr);
SensorBaseList& getSensorList();
// void removeSensor(const SensorBaseIter& _sensor_iter);
// void removeSensor(SensorBasePtr _sensor_ptr);
};
} // namespace wolf
......@@ -37,11 +35,6 @@ class HardwareBase : public NodeBase, public std::enable_shared_from_this<Hardwa
namespace wolf {
//inline void HardwareBase::removeSensor(const SensorBaseIter& _sensor_iter)
//{
// sensor_list_.erase(_sensor_iter);
//}
inline SensorBaseList& HardwareBase::getSensorList()
{
return sensor_list_;
......
......@@ -50,18 +50,6 @@ void MapBase::addLandmarkList(LandmarkBaseList _landmark_list)
landmark_list_.splice(landmark_list_.end(), _landmark_list);
}
//void MapBase::removeLandmark(LandmarkBasePtr _landmark_ptr)
//{
// landmark_list_.remove(_landmark_ptr);
//// delete _landmark_ptr;
//}
//
//void MapBase::removeLandmark(const LandmarkBaseIter& _landmark_iter)
//{
// landmark_list_.erase(_landmark_iter);
//// delete * _landmark_iter;
//}
void MapBase::load(const std::string& _map_file_dot_yaml)
{
YAML::Node map = YAML::LoadFile(_map_file_dot_yaml);
......
......@@ -28,8 +28,6 @@ class MapBase : public NodeBase, public std::enable_shared_from_this<MapBase>
virtual LandmarkBasePtr addLandmark(LandmarkBasePtr _landmark_ptr);
virtual void addLandmarkList(LandmarkBaseList _landmark_list);
// void removeLandmark(const LandmarkBaseIter& _landmark_iter);
// void removeLandmark(LandmarkBasePtr _landmark_ptr);
LandmarkBaseList& getLandmarkList();
void load(const std::string& _map_file_yaml);
......
......@@ -90,7 +90,6 @@ class SensorBase : public NodeBase, public std::enable_shared_from_this<SensorBa
SensorType typeId();
ProcessorBasePtr addProcessor(ProcessorBasePtr _proc_ptr);
// void removeProcessor(ProcessorBasePtr _prc_ptr);
ProcessorBaseList& getProcessorList();
......@@ -146,12 +145,6 @@ inline wolf::ProblemPtr SensorBase::getProblem()
return prb;
}
//inline void SensorBase::removeProcessor(ProcessorBasePtr _prc_ptr)
//{
// processor_list_.remove(_prc_ptr);
//// delete _prc_ptr;
//}
inline unsigned int SensorBase::id()
{
return sensor_id_;
......
......@@ -37,8 +37,6 @@ class TrajectoryBase : public NodeBase, public std::enable_shared_from_this<Traj
// Frames
FrameBasePtr addFrame(FrameBasePtr _frame_ptr);
// void removeFrame(const FrameBaseIter& _frame_iter);
// void removeFrame(const FrameBasePtr _frame_ptr);
FrameBaseList& getFrameList();
FrameBasePtr getLastFramePtr();
FrameBasePtr getLastKeyFramePtr();
......@@ -68,17 +66,6 @@ inline void TrajectoryBase::moveFrame(FrameBasePtr _frm_ptr, FrameBaseIter _plac
}
}
//inline void TrajectoryBase::removeFrame(const FrameBaseIter& _frame_iter)
//{
// frame_list_.erase(_frame_iter);
//// delete * _frame_iter;
//}
//inline void TrajectoryBase::removeFrame(const FrameBasePtr _frame_ptr)
//{
// frame_list_.remove(_frame_ptr);
//// delete _frame_ptr;
//}
inline FrameBaseList& TrajectoryBase::getFrameList()
{
return frame_list_;
......
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