From a2aa00305626bcf41052c4733c86bd03a5cf8c21 Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Wed, 7 Mar 2018 23:48:00 +0100 Subject: [PATCH 1/2] Removes boilerplate code --- .../UILib Sample/WidgetsViewController.swift | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/Sample Code/SwiftSampleCode/UILib Sample/WidgetsViewController.swift b/Sample Code/SwiftSampleCode/UILib Sample/WidgetsViewController.swift index 3200773d..82d7c061 100644 --- a/Sample Code/SwiftSampleCode/UILib Sample/WidgetsViewController.swift +++ b/Sample Code/SwiftSampleCode/UILib Sample/WidgetsViewController.swift @@ -12,28 +12,7 @@ import DJIUILibrary class WidgetsViewController: UIViewController { var widgets = [AnyObject]() - - override func viewDidLoad() { - super.viewDidLoad() - } - - override func didReceiveMemoryWarning() { - super.didReceiveMemoryWarning() - // Dispose of any resources that can be recreated. - } - - /* - // MARK: - Navigation - - // In a storyboard-based application, you will often want to do a little preparation before navigation - override func prepare(for segue: UIStoryboardSegue, sender: Any?) { - // Get the new view controller using segue.destinationViewController. - // Pass the selected object to the new view controller. - } - */ - - @IBAction func close () { self.dismiss(animated: true) { From 069ea146699e67b9ef9d7b4b8ce34ce2588353b3 Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Wed, 7 Mar 2018 23:56:35 +0100 Subject: [PATCH 2/2] Removes boilerplate code --- .../DefaultLayoutCustomizationViewController.swift | 3 --- 1 file changed, 3 deletions(-) diff --git a/Sample Code/SwiftSampleCode/UILib Sample/DefaultLayoutCustomizationViewController.swift b/Sample Code/SwiftSampleCode/UILib Sample/DefaultLayoutCustomizationViewController.swift index 134d3c5b..3a38f750 100644 --- a/Sample Code/SwiftSampleCode/UILib Sample/DefaultLayoutCustomizationViewController.swift +++ b/Sample Code/SwiftSampleCode/UILib Sample/DefaultLayoutCustomizationViewController.swift @@ -41,7 +41,4 @@ class DefaultLayoutCustomizationViewController: DULDefaultLayoutViewController { } - override func viewDidLoad() { - super.viewDidLoad() - } }