Skip to content

Commit

Permalink
Remove unused availability property
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunn committed Jun 19, 2019
1 parent 63d4a0b commit 09be15b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions OpenSim/Device.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@ enum State {
case unknown
}

enum Availability {
case available
case unavailable
}

struct Device {
private let stateValue: String
private let availabilityValue: String
public let name: String
public let UDID: String
}
Expand Down Expand Up @@ -55,15 +49,6 @@ extension Device {
}
}

public var availability: Availability {
switch availabilityValue {
case "(available)":
return .available
default:
return .unavailable
}
}

public func containerURLForApplication(_ application: Application) -> URL? {
let URL = URLHelper.containersURLForUDID(UDID)
let directories = try? FileManager.default.contentsOfDirectory(at: URL, includingPropertiesForKeys: nil, options: .skipsSubdirectoryDescendants)
Expand All @@ -89,6 +74,5 @@ extension Device: Decodable {
case UDID = "udid"
case name
case stateValue = "state"
case availabilityValue = "availability"
}
}

0 comments on commit 09be15b

Please sign in to comment.