Simplify path removal logic and clean up unused imports in path management dialog

This commit is contained in:
Winston Lowe
2026-03-26 20:37:46 -07:00
parent d5f19051b2
commit 888cf43fef
2 changed files with 1 additions and 4 deletions
+1 -3
View File
@@ -2165,9 +2165,7 @@ class _MapScreenState extends State<MapScreen> {
void _removePath() {
setState(() {
_pathTraceContacts.remove(
_pathTrace.last,
); // Remove last contact from path trace
_pathTraceContacts.removeLast();
_pathTrace.removeLast(); // Remove last node from path trace
_points.removeLast(); // Remove last point from points list
_polylines.clear(); // Clear polylines