From f9f6ac92b8d81f4229e5c3cc0591b8f9be85b4df Mon Sep 17 00:00:00 2001 From: islam <2553451+qalandarov@users.noreply.github.com> Date: Mon, 30 Mar 2026 08:26:49 +0100 Subject: [PATCH] Remove dead code --- bitchat/Views/ContentView.swift | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/bitchat/Views/ContentView.swift b/bitchat/Views/ContentView.swift index 491a9da2..32ebb8eb 100644 --- a/bitchat/Views/ContentView.swift +++ b/bitchat/Views/ContentView.swift @@ -1923,25 +1923,6 @@ private extension ContentView { } } - func handleImportResult(_ result: Result<[URL], Error>, handler: @escaping (URL) async -> Void) { - switch result { - case .success(let urls): - guard let url = urls.first else { return } - let needsStop = url.startAccessingSecurityScopedResource() - Task { - defer { - if needsStop { - url.stopAccessingSecurityScopedResource() - } - } - await handler(url) - } - case .failure(let error): - SecureLogger.error("Media import failed: \(error)", category: .session) - } - } - - func applicationFilesDirectory() -> URL? { // Cache the directory lookup to avoid repeated FileManager calls during view rendering struct Cache {