From cb1c6b2940ec23ca12a5e06bbeb013f86035f4da Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Sun, 10 Dec 2023 15:28:07 -0800 Subject: [PATCH] Delete unused code --- Sources/SafeDICore/Models/ConcreteDeclType.swift | 11 ----------- Sources/SafeDICore/Models/Initializer.swift | 6 ------ 2 files changed, 17 deletions(-) diff --git a/Sources/SafeDICore/Models/ConcreteDeclType.swift b/Sources/SafeDICore/Models/ConcreteDeclType.swift index 9217abfc..008ed75e 100644 --- a/Sources/SafeDICore/Models/ConcreteDeclType.swift +++ b/Sources/SafeDICore/Models/ConcreteDeclType.swift @@ -33,15 +33,4 @@ public enum ConcreteDeclType { false } } - - var isStruct: Bool { - switch self { - case .actorType: - false - case .classType: - false - case .structType: - true - } - } } diff --git a/Sources/SafeDICore/Models/Initializer.swift b/Sources/SafeDICore/Models/Initializer.swift index e748811e..a14a9e02 100644 --- a/Sources/SafeDICore/Models/Initializer.swift +++ b/Sources/SafeDICore/Models/Initializer.swift @@ -234,12 +234,6 @@ public struct Initializer: Codable, Hashable { ) } - public init(property: Property) { - outerLabel = nil - innerLabel = property.label - typeDescription = property.typeDescription - } - init(_ node: FunctionParameterSyntax) { if let secondName = node.secondName { outerLabel = node.firstName.text