Skip to content

Commit c18bbc3

Browse files
chore!: Deletes Reflection.isEncodable
1 parent 8811ad6 commit c18bbc3

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Sources/Graphiti/Definition/Reflection.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,6 @@ public enum Reflection {
44
return description.hasSuffix("Protocol")
55
}
66

7-
@available(*, deprecated, message: "No longer used")
8-
public static func isEncodable(type: Any.Type) -> Bool {
9-
if isProtocol(type: type) {
10-
return true
11-
}
12-
13-
if let type = type as? Wrapper.Type {
14-
return isEncodable(type: type.wrappedType)
15-
}
16-
17-
return type is Encodable.Type
18-
}
19-
207
public static func name<Subject>(for instance: Subject) -> String {
218
var typeName: [Character] = []
229
var genericArgument: [Character] = []

0 commit comments

Comments
 (0)