mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-09 19:39:50 +08:00
Removing redundant non null check before deleting a ptr in destructors #301
This commit is contained in:
@@ -389,10 +389,7 @@ RegistrationIcp::RegistrationIcp(const ParametersMap & parameters, Registration
|
||||
RegistrationIcp::~RegistrationIcp()
|
||||
{
|
||||
#ifdef RTABMAP_POINTMATCHER
|
||||
if(_libpointmatcherICP)
|
||||
{
|
||||
delete (PM::ICP*)_libpointmatcherICP;
|
||||
}
|
||||
delete (PM::ICP*)_libpointmatcherICP;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user