From b4b436e4ec799f8fe7e7feddf1ad72acfcd96618 Mon Sep 17 00:00:00 2001 From: Stephen Beitzel Date: Wed, 23 Apr 2025 16:36:52 -0700 Subject: [PATCH] Remove redundant initializers --- ControlRoom/Controllers/Snapshot.swift | 6 ------ ControlRoom/Helpers/URLFileAttribute.swift | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/ControlRoom/Controllers/Snapshot.swift b/ControlRoom/Controllers/Snapshot.swift index ddb60ec..61c455e 100644 --- a/ControlRoom/Controllers/Snapshot.swift +++ b/ControlRoom/Controllers/Snapshot.swift @@ -15,10 +15,4 @@ struct Snapshot: Equatable, Hashable, Identifiable { static func == (lhs: Snapshot, rhs: Snapshot) -> Bool { lhs.id == rhs.id } - - init(id: String, creationDate: Date, size: Int) { - self.id = id - self.creationDate = creationDate - self.size = size - } } diff --git a/ControlRoom/Helpers/URLFileAttribute.swift b/ControlRoom/Helpers/URLFileAttribute.swift index becec86..0e4b36f 100644 --- a/ControlRoom/Helpers/URLFileAttribute.swift +++ b/ControlRoom/Helpers/URLFileAttribute.swift @@ -9,9 +9,9 @@ import Foundation struct URLFileAttribute { - private(set) var folderSize: Int? = nil - private(set) var creationDate: Date? = nil - private(set) var modificationDate: Date? = nil + private(set) var folderSize: Int? + private(set) var creationDate: Date? + private(set) var modificationDate: Date? init(url: URL) { let path = url.path