aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Shared
diff options
context:
space:
mode:
authorDustin Mierau <mierau@users.noreply.github.com>2024-01-09 14:44:14 -0800
committerGitHub <noreply@github.com>2024-01-09 14:44:14 -0800
commita2b7946804f5ab17ef1aebc4b5bb72e7cf14e83b (patch)
tree218012a1565033fa89a862a34a0683a9fad3d39b /Hotline/Shared
parentf198d4d59b922e9cb872fe6831d3475c570fa56f (diff)
parent60f90281bf971600733b2d72b747bcb6be9b1c31 (diff)
Merge branch 'main' into patch-1
Diffstat (limited to 'Hotline/Shared')
-rw-r--r--Hotline/Shared/URLAdditions.swift16
1 files changed, 0 insertions, 16 deletions
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
-// }
}