From 55937ec0c76e0782a94dba4b4908eeb4fa69151e Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 20 Oct 2021 00:18:29 +0200 Subject: [PATCH] Cleanup of unused function --- Logic/ExtraFunction.ts | 2 -- Logic/UIEventSource.ts | 17 ----------------- 2 files changed, 19 deletions(-) diff --git a/Logic/ExtraFunction.ts b/Logic/ExtraFunction.ts index a022eb11a9..8f0265bb14 100644 --- a/Logic/ExtraFunction.ts +++ b/Logic/ExtraFunction.ts @@ -5,8 +5,6 @@ import State from "../State"; import BaseUIElement from "../UI/BaseUIElement"; import List from "../UI/Base/List"; import Title from "../UI/Base/Title"; -import {UIEventSourceTools} from "./UIEventSource"; -import AspectedRouting from "./Osm/aspectedRouting"; import {BBox} from "./BBox"; export interface ExtraFuncParams { diff --git a/Logic/UIEventSource.ts b/Logic/UIEventSource.ts index 0e802ad8cd..571c74f8e3 100644 --- a/Logic/UIEventSource.ts +++ b/Logic/UIEventSource.ts @@ -337,21 +337,4 @@ export class UIEventSource { } ) } -} - -export class UIEventSourceTools { - - private static readonly _download_cache = new Map>() - - public static downloadJsonCached(url: string): UIEventSource { - const cached = UIEventSourceTools._download_cache.get(url) - if (cached !== undefined) { - return cached; - } - const src = new UIEventSource(undefined) - UIEventSourceTools._download_cache.set(url, src) - Utils.downloadJson(url).then(r => src.setData(r)) - return src; - } - } \ No newline at end of file