Skip to content

Commit 25d999b

Browse files
committed
fix: Removed dead code.
Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
1 parent c485186 commit 25d999b

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

Sources/NextcloudFileProviderKit/Metadata/ItemMetadata.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,6 @@ public enum Status: Int {
1818
case uploadError = 4
1919
}
2020

21-
public enum SharePermissions: Int {
22-
case readShare = 1
23-
case updateShare = 2
24-
case createShare = 4
25-
case deleteShare = 8
26-
case shareShare = 16
27-
28-
case maxFileShare = 19
29-
case maxFolderShare = 31
30-
}
31-
3221
///
3322
/// Requirements for the data model implementations of file provider items.
3423
///

Sources/NextcloudFileProviderKit/Utilities/LocalFiles.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,6 @@ public func pathForAppGroupContainer() -> URL? {
2121
return FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroupIdentifier)
2222
}
2323

24-
public func pathForFileProviderTempFilesForDomain(_ domain: NSFileProviderDomain) throws -> URL? {
25-
guard let fpManager = NSFileProviderManager(for: domain) else {
26-
lfuLogger.error("Unable to get file provider manager for domain: \(domain.displayName, privacy: .public)")
27-
throw NSFileProviderError(.providerNotFound)
28-
}
29-
30-
let fileProviderDataUrl = try fpManager.temporaryDirectoryURL()
31-
return fileProviderDataUrl.appendingPathComponent("TemporaryNextcloudFiles")
32-
}
33-
3424
///
3525
/// Determine whether the given filename is a lock file as created by certain applications like Microsoft Office or LibreOffice.
3626
///

0 commit comments

Comments
 (0)