refactored... completly

This commit is contained in:
matlabbe
2026-07-14 15:22:39 -07:00
parent e80a6f91b1
commit 61ea94db8d
3 changed files with 88 additions and 124 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ public:
const std::map<int, Transform> & optimizedPoses,
int maxGraphDepth) const;
void convertToIntermediate(int locationId);
void deleteLocation(int locationId, std::list<int> * deletedWords = 0, bool keepLinked = false);
void deleteLocation(int locationId, std::list<int> * deletedWords = 0);
void saveLocationData(int locationId);
void removeLink(int idA, int idB);
void removeRawData(int id, bool image = true, bool scan = true, bool userData = true, bool occupancyGrid = true);
+2 -3
View File
@@ -3132,14 +3132,13 @@ void Memory::convertToIntermediate(int locationId)
}
}
void Memory::deleteLocation(int locationId, std::list<int> * deletedWords, bool keepLinked)
void Memory::deleteLocation(int locationId, std::list<int> * deletedWords)
{
UDEBUG("Deleting location %d", locationId);
Signature * location = _getSignature(locationId);
if(location)
{
this->moveToTrash(location, keepLinked, deletedWords);
_linksChanged = true;
this->moveToTrash(location, false, deletedWords);
_memoryChanged = true;
}
}