diff options
author | Jeroen Leenarts <jeroen.leenarts@gmail.com> | 2018-05-27 14:20:15 +0200 |
---|---|---|
committer | Jeroen Leenarts <jeroen.leenarts@gmail.com> | 2018-05-27 14:20:15 +0200 |
commit | ef67aa7dc494d2583b753445475cbbc9bcd6e1b5 (patch) | |
tree | 05aa3e2c5605eef42d02e4747a9654cec34da21e /Wireguard/Coordinators/Coordinator.swift | |
parent | Add trash can icon. (diff) | |
download | wireguard-apple-ef67aa7dc494d2583b753445475cbbc9bcd6e1b5.tar.xz wireguard-apple-ef67aa7dc494d2583b753445475cbbc9bcd6e1b5.zip |
Deal with final folder name issues due to Apple's case insensitive case preserving behavior.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'Wireguard/Coordinators/Coordinator.swift')
-rw-r--r-- | Wireguard/Coordinators/Coordinator.swift | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Wireguard/Coordinators/Coordinator.swift b/Wireguard/Coordinators/Coordinator.swift deleted file mode 100644 index 147f160..0000000 --- a/Wireguard/Coordinators/Coordinator.swift +++ /dev/null @@ -1,34 +0,0 @@ -// -// Coordinator.swift -// WireGuard -// -// Created by Jeroen Leenarts on 23-05-18. -// Copyright © 2018 WireGuard. 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 } - } - -} |