From 24e770933d6081c1703345e43ee94f54af3b5160 Mon Sep 17 00:00:00 2001 From: Nikolay Shubenkov Date: Sun, 7 Feb 2016 20:18:39 +0300 Subject: [PATCH] -refactor: removed unused code --- Example/MPParallaxView/AppDelegate.swift | 23 ------------------- .../MPParallaxView/Base.lproj/Main.storyboard | 12 ++-------- Example/MPParallaxView/ViewController.swift | 5 ---- 3 files changed, 2 insertions(+), 38 deletions(-) diff --git a/Example/MPParallaxView/AppDelegate.swift b/Example/MPParallaxView/AppDelegate.swift index 85232c9..5089819 100644 --- a/Example/MPParallaxView/AppDelegate.swift +++ b/Example/MPParallaxView/AppDelegate.swift @@ -19,28 +19,5 @@ class AppDelegate: UIResponder, UIApplicationDelegate { return true } - func applicationWillResignActive(application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. - } - - func applicationDidEnterBackground(application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. - } - - func applicationWillEnterForeground(application: UIApplication) { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. - } - - func applicationDidBecomeActive(application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - } - - func applicationWillTerminate(application: UIApplication) { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. - } - - } diff --git a/Example/MPParallaxView/Base.lproj/Main.storyboard b/Example/MPParallaxView/Base.lproj/Main.storyboard index 50baf6a..96714f4 100644 --- a/Example/MPParallaxView/Base.lproj/Main.storyboard +++ b/Example/MPParallaxView/Base.lproj/Main.storyboard @@ -1,7 +1,7 @@ - + - + @@ -21,26 +21,20 @@ - - - - - - @@ -49,7 +43,6 @@ - @@ -60,7 +53,6 @@ - diff --git a/Example/MPParallaxView/ViewController.swift b/Example/MPParallaxView/ViewController.swift index edf558e..32605c8 100644 --- a/Example/MPParallaxView/ViewController.swift +++ b/Example/MPParallaxView/ViewController.swift @@ -77,11 +77,6 @@ class ViewController: UIViewController { blurredPosterImageView?.layer.zPosition = 1 } - override func didReceiveMemoryWarning() { - super.didReceiveMemoryWarning() - // Dispose of any resources that can be recreated. - } - } extension UIViewController {