From 73240d2f3dcec2c66ed25668ede87b4893cd8227 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu>
Date: Fri, 31 May 2019 12:17:52 +0200
Subject: [PATCH] bug fix in mapBase::addLandmarkList

---
 src/map/map_base.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/map/map_base.cpp b/src/map/map_base.cpp
index aa4b1ac6c..bff3d2a10 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)
-- 
GitLab