diff --git a/src/lib/components/DirectionsPanel.svelte b/src/lib/components/DirectionsPanel.svelte index 827be96..522ac9e 100644 --- a/src/lib/components/DirectionsPanel.svelte +++ b/src/lib/components/DirectionsPanel.svelte @@ -33,8 +33,6 @@ ) => Promise; /** Browser-local saved points (selectable as destination). */ savedPoints?: SavedPoint[]; - /** Called when the user picks a saved point as a destination. */ - onPickSavedPoint?: (p: SavedPoint) => void; /** Controlled destination (set via the context dialog or the picker). */ destination: { lat: number; lon: number; label?: string } | null; /** Called whenever the destination should change. */ @@ -53,7 +51,6 @@ computing = false, runRoute, savedPoints = [], - onPickSavedPoint, destination = null, onDestinationChange }: Props = $props(); @@ -267,7 +264,7 @@ {#if savedMatches().length}
  • Saved points
  • {#each savedMatches() as p (p.id)} -
  • {/each} @@ -293,7 +290,7 @@
    — or a saved point — {#each savedPoints as p (p.id)} - {/each} diff --git a/src/lib/components/MapView.svelte b/src/lib/components/MapView.svelte index 179c0fc..39cca1e 100644 --- a/src/lib/components/MapView.svelte +++ b/src/lib/components/MapView.svelte @@ -352,9 +352,6 @@ } function closeContext() { ctx = null; } - function setSavedPointAsOrigin(p: SavedPoint) { - setOrigin(p.lat, p.lon, p.label || 'Saved point'); - } // --- context dialog actions --- function ctxDirectionsFrom(lat: number, lon: number, label?: string) { @@ -633,7 +630,6 @@ graphLoading={routeLoading} searchables={searchables} savedPoints={savedPointsList} - onPickSavedPoint={(p) => setSavedPointAsOrigin(p)} destination={destination} onDestinationChange={(d) => (destination = d)} progress={routeProgress}