| 354 | } |
| 355 | |
| 356 | void RoutePointsLayout::RemovePassedPoints() |
| 357 | { |
| 358 | // Prevent recalculation of markIds at every iteration, since we are removing elements |
| 359 | auto markIds = m_manager.GetUserMarkIds(UserMark::Type::ROUTING); |
| 360 | for (auto markId : markIds) |
| 361 | { |
| 362 | auto * mark = m_editSession.GetMarkForEdit<RouteMarkPoint>(markId); |
| 363 | if (mark && mark->IsPassed() && mark->GetRoutePointType() == RouteMarkType::Intermediate) |
| 364 | m_editSession.DeleteUserMark(mark->GetId()); |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | RouteMarkPoint const * RoutePointsLayout::GetRoutePoint(RouteMarkType type, size_t intermediateIndex) const |
| 369 | { |
nothing calls this directly
no test coverage detected