Skip to content

Commit dd5e796

Browse files
committed
Cleanup AppDelegate
1 parent 8c2bedb commit dd5e796

2 files changed

Lines changed: 6 additions & 20 deletions

File tree

RxCoreDateExample/RxCoreDateExample/AppDelegate.swift

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,21 @@ import CoreData
55
class AppDelegate: UIResponder, UIApplicationDelegate {
66

77
var window: UIWindow?
8-
8+
99
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
1010
((window!.rootViewController as! UINavigationController).topViewController as! ViewController).managedObjectContext = self.managedObjectContext
1111
return true
1212
}
1313

14-
func applicationWillResignActive(_ application: UIApplication) {
15-
// 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.
16-
// 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.
17-
}
14+
func applicationWillResignActive(_ application: UIApplication) {}
1815

19-
func applicationDidEnterBackground(_ application: UIApplication) {
20-
// 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.
21-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
22-
}
16+
func applicationDidEnterBackground(_ application: UIApplication) {}
2317

24-
func applicationWillEnterForeground(_ application: UIApplication) {
25-
// 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.
26-
}
18+
func applicationWillEnterForeground(_ application: UIApplication) {}
2719

28-
func applicationDidBecomeActive(_ application: UIApplication) {
29-
// 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.
30-
}
20+
func applicationDidBecomeActive(_ application: UIApplication) {}
3121

32-
func applicationWillTerminate(_ application: UIApplication) {
33-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
34-
}
22+
func applicationWillTerminate(_ application: UIApplication) {}
3523

3624
// MARK: - Core Data stack
3725

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import Foundation
22

33
struct Event {
4-
54
var id: String
65
var date: Date
7-
86
}

0 commit comments

Comments
 (0)