aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/ViewControllers/Identifyable.swift
diff options
context:
space:
mode:
Diffstat (limited to 'WireGuard/ViewControllers/Identifyable.swift')
-rw-r--r--WireGuard/ViewControllers/Identifyable.swift23
1 files changed, 0 insertions, 23 deletions
diff --git a/WireGuard/ViewControllers/Identifyable.swift b/WireGuard/ViewControllers/Identifyable.swift
deleted file mode 100644
index c94a399..0000000
--- a/WireGuard/ViewControllers/Identifyable.swift
+++ /dev/null
@@ -1,23 +0,0 @@
-//
-// Copyright © 2018 WireGuard LLC. All rights reserved.
-//
-
-import Foundation
-import UIKit
-
-public protocol Identifyable: class {
- static var identifier: String { get }
-}
-
-public extension Identifyable {
- static var identifier: String {
- return String(describing: Self.self)
- }
-}
-
-extension UIStoryboard {
-
- public func instantiateViewController<T: Identifyable>(type: T.Type) -> T where T: UIViewController {
- return self.instantiateViewController(withIdentifier: type.identifier) as! T // swiftlint:disable:this force_cast
- }
-}