From bd8ccc597852179a479e806b7009206ef882c9d1 Mon Sep 17 00:00:00 2001 From: Adrien Date: Mon, 30 Jan 2023 22:10:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20unused=20functions=20fr?= =?UTF-8?q?om=20search=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit removeStops, getMarkers and addMarkers are not used anymore... remove them. --- frontend/src/search.tsx | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/frontend/src/search.tsx b/frontend/src/search.tsx index 9c0e658..fe78f99 100644 --- a/frontend/src/search.tsx +++ b/frontend/src/search.tsx @@ -37,29 +37,12 @@ export function SearchProvider(props: { children: JSX.Element }) { }); } - const removeStops = (stopIds: Array) => { - batch(() => { - for (const stopId of stopIds) { - setStore('stops', stopId, undefined); - setStore('markers', stopId, undefined); - } - }); - } - - const getMarkers = () => { - return store.markers; - } - const addMarkers = (stopId: number, markers: L.Marker[]): void => { setStore('markers', stopId, markers); } - const setMarkers = (markers) => { - setStore('markers', markers); - } - return ( - + {props.children} );