MCPcopy Create free account
hub / github.com/comaps/comaps / DeleteTrack

Method DeleteTrack

libs/map/bookmark_manager.cpp:528–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526}
527
528void BookmarkManager::DeleteTrack(kml::TrackId trackId)
529{
530 CHECK_THREAD_CHECKER(m_threadChecker, ());
531 DeleteTrackSelectionMark(trackId);
532 auto it = m_tracks.find(trackId);
533 auto const groupId = it->second->GetGroupId();
534 if (groupId != kml::kInvalidMarkGroupId)
535 GetBmCategory(groupId)->DetachTrack(trackId);
536 m_changesTracker.OnDeleteLine(trackId);
537 m_tracks.erase(it);
538}
539
540void BookmarkManager::GetDirtyGroups(kml::GroupIdSet & dirtyGroups) const
541{

Calls 5

OnDeleteLineMethod · 0.80
findMethod · 0.45
GetGroupIdMethod · 0.45
DetachTrackMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected