From 09be15bce138a5b3827dca6bb5278f7d2c3693a1 Mon Sep 17 00:00:00 2001 From: Fernando Bunn Date: Wed, 19 Jun 2019 20:31:47 +0100 Subject: [PATCH] Remove unused availability property --- OpenSim/Device.swift | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/OpenSim/Device.swift b/OpenSim/Device.swift index b2d2d3a..79fe1f6 100644 --- a/OpenSim/Device.swift +++ b/OpenSim/Device.swift @@ -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 } @@ -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) @@ -89,6 +74,5 @@ extension Device: Decodable { case UDID = "udid" case name case stateValue = "state" - case availabilityValue = "availability" } }