Skip to content

Commit f7a1c5c

Browse files
authored
Merge pull request #198 from sbeitzel/feature/redundant_initializer
Remove redundant initializers
2 parents 2486a51 + fe49915 commit f7a1c5c

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

ControlRoom/Controllers/Snapshot.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,4 @@ struct Snapshot: Equatable, Hashable, Identifiable {
1515
static func == (lhs: Snapshot, rhs: Snapshot) -> Bool {
1616
lhs.id == rhs.id
1717
}
18-
19-
init(id: String, creationDate: Date, size: Int) {
20-
self.id = id
21-
self.creationDate = creationDate
22-
self.size = size
23-
}
2418
}

ControlRoom/Helpers/URLFileAttribute.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import Foundation
1010

1111
struct URLFileAttribute {
12-
private(set) var folderSize: Int? = nil
13-
private(set) var creationDate: Date? = nil
14-
private(set) var modificationDate: Date? = nil
12+
private(set) var folderSize: Int?
13+
private(set) var creationDate: Date?
14+
private(set) var modificationDate: Date?
1515

1616
init(url: URL) {
1717
let path = url.path

0 commit comments

Comments
 (0)