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

Method DeleteSavedRoutePoints

libs/map/routing_manager.cpp:1638–1648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1636}
1637
1638void RoutingManager::DeleteSavedRoutePoints()
1639{
1640 if (!HasSavedRoutePoints())
1641 return;
1642
1643 GetPlatform().RunTask(Platform::Thread::File, []()
1644 {
1645 auto const fileName = GetPlatform().SettingsPathForFile(kRoutePointsFile);
1646 FileWriter::DeleteFileX(fileName);
1647 });
1648}
1649
1650void RoutingManager::UpdatePreviewMode()
1651{

Calls 3

DeleteFileXFunction · 0.85
RunTaskMethod · 0.80
SettingsPathForFileMethod · 0.80

Tested by

no test coverage detected