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

Remove unused PM::last_nullptr_

parent ac7db762
No related branches found
No related tags found
No related merge requests found
Pipeline #5643 passed
...@@ -484,7 +484,6 @@ class ProcessorMotion : public ProcessorBase, public IsMotion ...@@ -484,7 +484,6 @@ class ProcessorMotion : public ProcessorBase, public IsMotion
CaptureMotionPtr origin_ptr_; CaptureMotionPtr origin_ptr_;
CaptureMotionPtr last_ptr_; CaptureMotionPtr last_ptr_;
CaptureMotionPtr incoming_ptr_; CaptureMotionPtr incoming_ptr_;
bool last_nullptr_;
protected: protected:
// helpers to avoid allocation // helpers to avoid allocation
......
...@@ -33,7 +33,6 @@ ProcessorMotion::ProcessorMotion(const std::string& _type, ...@@ -33,7 +33,6 @@ ProcessorMotion::ProcessorMotion(const std::string& _type,
origin_ptr_(), origin_ptr_(),
last_ptr_(), last_ptr_(),
incoming_ptr_(), incoming_ptr_(),
last_nullptr_(false),
dt_(0.0), dt_(0.0),
x_(_state_size), x_(_state_size),
delta_(_delta_size), delta_(_delta_size),
...@@ -315,11 +314,6 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr) ...@@ -315,11 +314,6 @@ void ProcessorMotion::processCapture(CaptureBasePtr _incoming_ptr)
break; break;
} }
if (last_nullptr_){
integrateOneStep();
last_nullptr_ = false;
}
// Update state and time stamps // Update state and time stamps
const auto& ts = getTimeStamp(); const auto& ts = getTimeStamp();
......
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