From c7fc9ef14e20e243b304056d5663753a9abab42b Mon Sep 17 00:00:00 2001 From: Callum Macdonald Date: Thu, 21 Nov 2024 14:35:09 +0000 Subject: [PATCH] Cleanup for @guaka --- nr-app/src/components/Map.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/nr-app/src/components/Map.tsx b/nr-app/src/components/Map.tsx index eba7f74..3260405 100644 --- a/nr-app/src/components/Map.tsx +++ b/nr-app/src/components/Map.tsx @@ -17,18 +17,6 @@ import React, { useState } from "react"; import { Button, Modal, TextInput } from "react-native"; import { getFirstTagValueFromEvent } from "@/common/utils"; -// todo: make it more typescriptsy -function extractLocationCode(data: any) { - for (const entry of data) { - if (Array.isArray(entry) && entry.length >= 3) { - if (entry[0] === "l" && entry[2] === "open-location-code") { - return entry[1]; - } - } - } - return null; -} - const NoteMarker = ({ event }: { event: EventWithMetadata }) => { const plusCode = getFirstTagValueFromEvent(event.event, "open-location-code");