Remove unused methods

pull/2/head
Michael Scoff 7 years ago
parent af4de6d595
commit 53925532bf
  1. 14
      Trust/Extensions/UIViewController.swift

@ -45,18 +45,4 @@ extension UIViewController {
func hideLoading(animated: Bool = true) {
MBProgressHUD.hide(for: view, animated: animated)
}
func add(asChildViewController viewController: UIViewController) {
addChildViewController(viewController)
view.addSubview(viewController.view)
viewController.view.frame = view.bounds
viewController.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
viewController.didMove(toParentViewController: self)
}
func remove(asChildViewController viewController: UIViewController) {
viewController.willMove(toParentViewController: nil)
viewController.view.removeFromSuperview()
viewController.removeFromParentViewController()
}
}

Loading…
Cancel
Save