aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Coordinators/Coordinator.swift
diff options
context:
space:
mode:
Diffstat (limited to 'WireGuard/Coordinators/Coordinator.swift')
-rw-r--r--WireGuard/Coordinators/Coordinator.swift30
1 files changed, 0 insertions, 30 deletions
diff --git a/WireGuard/Coordinators/Coordinator.swift b/WireGuard/Coordinators/Coordinator.swift
deleted file mode 100644
index d4263fc..0000000
--- a/WireGuard/Coordinators/Coordinator.swift
+++ /dev/null
@@ -1,30 +0,0 @@
-//
-// Copyright © 2018 WireGuard LLC. All rights reserved.
-//
-
-import Foundation
-
-/// The Coordinator protocol
-public protocol Coordinator: class {
-
- /// Starts the coordinator
- func start()
-
- /// The array containing any child Coordinators
- var childCoordinators: [Coordinator] { get set }
-
-}
-
-public extension Coordinator {
-
- /// Add a child coordinator to the parent
- public func addChildCoordinator(_ childCoordinator: Coordinator) {
- self.childCoordinators.append(childCoordinator)
- }
-
- /// Remove a child coordinator from the parent
- public func removeChildCoordinator(_ childCoordinator: Coordinator) {
- self.childCoordinators = self.childCoordinators.filter { $0 !== childCoordinator }
- }
-
-}