diff --git a/src/map/map_base.cpp b/src/map/map_base.cpp index aa4b1ac6cbe7ad182731a1f2acfd5ad46334a574..bff3d2a105ce9c4dc44050d86bb8c25b3668d739 100644 --- a/src/map/map_base.cpp +++ b/src/map/map_base.cpp @@ -35,9 +35,6 @@ LandmarkBasePtr MapBase::addLandmark(LandmarkBasePtr _landmark_ptr) void MapBase::addLandmarkList(LandmarkBasePtrList& _landmark_list) { - for (auto lmk : _landmark_list) - addLandmark(lmk); - //TEMPORARY FIX, should be made compliant with the new emplace methodology LandmarkBasePtrList lmk_list_copy = _landmark_list; //since _landmark_list will be empty after addDownNodeList() for (LandmarkBasePtr landmark_ptr : lmk_list_copy)