From 781e190d7e20fc86a5a481da2b7bcc4167269a21 Mon Sep 17 00:00:00 2001 From: Pete Y Date: Mon, 7 Aug 2023 16:46:44 +0100 Subject: [PATCH] Remove unused data getter --- src/lib/browse/railway_geojson_data_getter.ts | 9 --------- src/maplibre_helpers.ts | 1 - 2 files changed, 10 deletions(-) delete mode 100644 src/lib/browse/railway_geojson_data_getter.ts diff --git a/src/lib/browse/railway_geojson_data_getter.ts b/src/lib/browse/railway_geojson_data_getter.ts deleted file mode 100644 index fa57284be..000000000 --- a/src/lib/browse/railway_geojson_data_getter.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { FeatureCollection, Polygon } from "geojson"; -import stationsUrl from "../../../assets/railway_stations.geojson?url"; - -export async function getRailwayStationsGeoJson(): Promise< - FeatureCollection -> { - const resp = await fetch(stationsUrl); - return await resp.json(); -} diff --git a/src/maplibre_helpers.ts b/src/maplibre_helpers.ts index 022a49ee6..41452053b 100644 --- a/src/maplibre_helpers.ts +++ b/src/maplibre_helpers.ts @@ -14,7 +14,6 @@ import type { LayerSpecification, Map, } from "maplibre-gl"; -import stationsUrl from "../assets/railway_stations.geojson?url"; // Some methods take optional params. It's an error to pass in null or undefined, so use default values from // https://github.com/maplibre/maplibre-style-spec/blob/main/src/reference/v8.json.