Skip to content

Commit 09be15b

Browse files
committed
Remove unused availability property
1 parent 63d4a0b commit 09be15b

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

OpenSim/Device.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@ enum State {
1414
case unknown
1515
}
1616

17-
enum Availability {
18-
case available
19-
case unavailable
20-
}
21-
2217
struct Device {
2318
private let stateValue: String
24-
private let availabilityValue: String
2519
public let name: String
2620
public let UDID: String
2721
}
@@ -55,15 +49,6 @@ extension Device {
5549
}
5650
}
5751

58-
public var availability: Availability {
59-
switch availabilityValue {
60-
case "(available)":
61-
return .available
62-
default:
63-
return .unavailable
64-
}
65-
}
66-
6752
public func containerURLForApplication(_ application: Application) -> URL? {
6853
let URL = URLHelper.containersURLForUDID(UDID)
6954
let directories = try? FileManager.default.contentsOfDirectory(at: URL, includingPropertiesForKeys: nil, options: .skipsSubdirectoryDescendants)
@@ -89,6 +74,5 @@ extension Device: Decodable {
8974
case UDID = "udid"
9075
case name
9176
case stateValue = "state"
92-
case availabilityValue = "availability"
9377
}
9478
}

0 commit comments

Comments
 (0)