From 382121de2e79303845331d699adcdd777f8f062a Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Tue, 9 Jan 2024 10:30:44 -0800 Subject: Split view in News saves position and hiding when an article isn't selected. Some code cleanup. Some plumbing for news posting though it's not hooked up yet. --- Hotline/Shared/URLAdditions.swift | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'Hotline/Shared/URLAdditions.swift') diff --git a/Hotline/Shared/URLAdditions.swift b/Hotline/Shared/URLAdditions.swift index 7eebb46..1f25541 100644 --- a/Hotline/Shared/URLAdditions.swift +++ b/Hotline/Shared/URLAdditions.swift @@ -23,20 +23,4 @@ extension URL { return filePath } - -// private func prepareDownloadFile(name: String) -> Bool { -// let folderURL = FileManager.default.urls(for: .downloadsDirectory, in: .userDomainMask)[0] -// let filePath = findUniqueFilePath(base: name, at: folderURL) -// -// if FileManager.default.createFile(atPath: filePath, contents: nil) { -// if let h = FileHandle(forWritingAtPath: filePath) { -// self.filePath = filePath -// self.fileHandle = h -// self.fileProgress?.fileURL = URL(filePath: filePath).resolvingSymlinksInPath() -// return true -// } -// } -// -// return false -// } } -- cgit