Skip to content

Commit e2a8f2f

Browse files
author
Ken Carroll
committed
Remove unused code.
1 parent db45d9f commit e2a8f2f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Source/Shared/Storage/DiskStorage.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ final public class DiskStorage<Key: Hashable, Value> {
1717

1818
private let transformer: Transformer<Value>
1919
private let hasher = Hasher.constantAccrossExecutions()
20-
// private var defaultFileAttributes: [FileAttributeKey : Any]?
2120

2221
// MARK: - Initialization
2322
public convenience init(config: DiskConfig, fileManager: FileManager = FileManager.default, transformer: Transformer<Value>) throws {
@@ -84,9 +83,6 @@ extension DiskStorage: StorageAware {
8483
let expiry = expiry ?? config.expiry
8584
let data = try transformer.toData(object)
8685
let filePath = makeFilePath(for: key)
87-
// var attributes = defaultFileAttributes!
88-
// attributes[.modificationDate] = expiry.date
89-
//
9086
_ = fileManager.createFile(atPath: filePath, contents: data, attributes: nil)
9187
try fileManager.setAttributes([.modificationDate: expiry.date], ofItemAtPath: filePath)
9288
}

0 commit comments

Comments
 (0)