From d27123a49a5695b4161ed02a6ef26d06a3986e39 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sun, 14 May 2023 09:40:36 -0700 Subject: [PATCH] Delete unused code --- Meshtastic/Helpers/Map/OfflineTileManager.swift | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Meshtastic/Helpers/Map/OfflineTileManager.swift b/Meshtastic/Helpers/Map/OfflineTileManager.swift index fe6e4508..fe346d18 100644 --- a/Meshtastic/Helpers/Map/OfflineTileManager.swift +++ b/Meshtastic/Helpers/Map/OfflineTileManager.swift @@ -63,15 +63,6 @@ class OfflineTileManager: ObservableObject { } return Double(accumulatedSize) - -// let paths = self.computeTileOverlayPaths(boundingBox: boundingBox) -// -// for path in paths { -// let file = "tiles/\(UserDefaults.mapTileServer.id)-z\(path.z)x\(path.x)y\(path.y).png" -// let url = documentsDirectory.appendingPathComponent(file) -// accumulatedSize += (try? url.regularFileAllocatedSize()) ?? 0 -// } -// return Double(accumulatedSize) } func getDownloadedSize(for boundingBox: MKMapRect) -> Double {