From 733bbda15e42c5cfc10f4ca5005ce207653a4d5c Mon Sep 17 00:00:00 2001 From: Meng Li Date: Tue, 18 Jun 2019 18:38:38 +0900 Subject: [PATCH] Delete removeRxChilds method. --- Example/Podfile.lock | 6 +++--- RxController/Classes/RxViewController.swift | 18 +----------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 78e4063..74bb3c6 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -6,7 +6,7 @@ PODS: - RxCocoa (5.0.0): - RxRelay (~> 5) - RxSwift (~> 5) - - RxController (0.3): + - RxController (0.5): - RxCocoa (~> 5) - RxFlow (~> 2) - RxSwift (~> 5) @@ -42,7 +42,7 @@ SPEC CHECKSUMS: Fakery: 476f6d947de432f84703acc830a1e7166330299b RxBinding: 58be2cf1311165489a66eacb4a3e33932d598a53 RxCocoa: fcf32050ac00d801f34a7f71d5e8e7f23026dcd8 - RxController: 3bc5f3950348597eeb0a77f34008067b656eeb8c + RxController: 8974c8fdf3da1e334bea5d74b98287792428553d RxFlow: ee6f1fdbacfa4ca8926122e466dfba32e3edf73f RxRelay: 4f7409406a51a55cd88483f21ed898c234d60f18 RxSwift: 8b0671caa829a763bbce7271095859121cbd895f @@ -50,4 +50,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 2f6e11b870557e69628937de873ffa2335467951 -COCOAPODS: 1.7.0 +COCOAPODS: 1.7.2 diff --git a/RxController/Classes/RxViewController.swift b/RxController/Classes/RxViewController.swift index 6bd80dd..0e1c81e 100644 --- a/RxController/Classes/RxViewController.swift +++ b/RxController/Classes/RxViewController.swift @@ -70,23 +70,7 @@ open class RxViewController: UIViewController { super.viewWillAppear(animated) viewModel.controllerWillDisappear() } - - /** - Remove all child view controllers from this parent view controller, - an except list can be specified. - - @param excepts: an except list - */ - public func removeRxChilds(excepts: [RxViewController?] = []) { - children.filter { - !excepts.compactMap { $0 }.contains($0) - }.forEach { - $0.willMove(toParent: self) - $0.view.removeFromSuperview() - $0.removeFromParent() - } - } - + /** Add a child view controller to the root view of this parent view controller.