Skip to content

Commit 98e438d

Browse files
author
Junius Gunaratne
committed
Remove duplicated code due to import error
Reviewers: ajsecord, #material_components_ios_owners, featherless Reviewed By: #material_components_ios_owners, featherless Projects: #material_components_ios_owners Differential Revision: http://codereview.cc/D79
1 parent 61e69ee commit 98e438d

11 files changed

+111
-6570
lines changed

demos/Pesto/Pesto/PestoAppDelegate.h

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,6 @@
22

33
@interface PestoAppDelegate : UIResponder <UIApplicationDelegate>
44

5-
@property(strong, nonatomic) UIWindow *window;
6-
7-
@end
8-
#import <UIKit/UIKit.h>
9-
10-
@interface PestoAppDelegate : UIResponder <UIApplicationDelegate>
11-
12-
@property(strong, nonatomic) UIWindow *window;
13-
14-
@end
15-
#import <UIKit/UIKit.h>
16-
17-
@interface PestoAppDelegate : UIResponder <UIApplicationDelegate>
18-
19-
@property(strong, nonatomic) UIWindow *window;
20-
21-
@end
22-
#import <UIKit/UIKit.h>
23-
24-
@interface PestoAppDelegate : UIResponder <UIApplicationDelegate>
25-
26-
@property(strong, nonatomic) UIWindow *window;
27-
28-
@end
29-
#import <UIKit/UIKit.h>
30-
31-
@interface PestoAppDelegate : UIResponder <UIApplicationDelegate>
32-
33-
@property(strong, nonatomic) UIWindow *window;
34-
35-
@end
36-
#import <UIKit/UIKit.h>
37-
38-
@interface PestoAppDelegate : UIResponder <UIApplicationDelegate>
39-
40-
@property(strong, nonatomic) UIWindow *window;
41-
42-
@end
43-
#import <UIKit/UIKit.h>
44-
45-
@interface PestoAppDelegate : UIResponder <UIApplicationDelegate>
46-
47-
@property(strong, nonatomic) UIWindow *window;
48-
49-
@end
50-
#import <UIKit/UIKit.h>
51-
52-
@interface PestoAppDelegate : UIResponder <UIApplicationDelegate>
53-
54-
@property(strong, nonatomic) UIWindow *window;
5+
@property (strong, nonatomic) UIWindow *window;
556

567
@end

demos/Pesto/Pesto/PestoAppDelegate.m

Lines changed: 0 additions & 306 deletions
Original file line numberDiff line numberDiff line change
@@ -7,316 +7,10 @@ @interface PestoAppDelegate ()
77

88
@implementation PestoAppDelegate
99

10-
- (BOOL)application:(UIApplication *)application
11-
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
12-
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
13-
self.window.backgroundColor = [UIColor whiteColor];
14-
[self.window makeKeyAndVisible];
15-
16-
PestoViewController *pestoVC = [[PestoViewController alloc] init];
17-
[self.window setRootViewController:pestoVC];
18-
19-
return YES;
20-
}
21-
22-
- (void)applicationWillResignActive:(UIApplication *)application {
23-
// 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.
24-
// 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.
25-
}
26-
27-
- (void)applicationDidEnterBackground:(UIApplication *)application {
28-
// 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.
29-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30-
}
31-
32-
- (void)applicationWillEnterForeground:(UIApplication *)application {
33-
// 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.
34-
}
35-
36-
- (void)applicationDidBecomeActive:(UIApplication *)application {
37-
// 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.
38-
}
39-
40-
- (void)applicationWillTerminate:(UIApplication *)application {
41-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42-
}
43-
44-
@end
45-
#import "PestoAppDelegate.h"
46-
#import "PestoViewController.h"
47-
48-
@interface PestoAppDelegate ()
49-
50-
@end
51-
52-
@implementation PestoAppDelegate
53-
54-
- (BOOL)application:(UIApplication *)application
55-
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
56-
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
57-
self.window.backgroundColor = [UIColor whiteColor];
58-
[self.window makeKeyAndVisible];
59-
60-
PestoViewController *pestoVC = [[PestoViewController alloc] init];
61-
[self.window setRootViewController:pestoVC];
62-
63-
return YES;
64-
}
65-
66-
- (void)applicationWillResignActive:(UIApplication *)application {
67-
// 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.
68-
// 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.
69-
}
70-
71-
- (void)applicationDidEnterBackground:(UIApplication *)application {
72-
// 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.
73-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
74-
}
75-
76-
- (void)applicationWillEnterForeground:(UIApplication *)application {
77-
// 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.
78-
}
79-
80-
- (void)applicationDidBecomeActive:(UIApplication *)application {
81-
// 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.
82-
}
83-
84-
- (void)applicationWillTerminate:(UIApplication *)application {
85-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
86-
}
87-
88-
@end
89-
#import "PestoAppDelegate.h"
90-
#import "PestoViewController.h"
91-
92-
@interface PestoAppDelegate ()
93-
94-
@end
95-
96-
@implementation PestoAppDelegate
97-
98-
- (BOOL)application:(UIApplication *)application
99-
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
100-
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
101-
self.window.backgroundColor = [UIColor whiteColor];
102-
[self.window makeKeyAndVisible];
103-
104-
PestoViewController *pestoVC = [[PestoViewController alloc] init];
105-
[self.window setRootViewController:pestoVC];
106-
107-
return YES;
108-
}
109-
110-
- (void)applicationWillResignActive:(UIApplication *)application {
111-
// 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.
112-
// 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.
113-
}
114-
115-
- (void)applicationDidEnterBackground:(UIApplication *)application {
116-
// 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.
117-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
118-
}
119-
120-
- (void)applicationWillEnterForeground:(UIApplication *)application {
121-
// 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.
122-
}
123-
124-
- (void)applicationDidBecomeActive:(UIApplication *)application {
125-
// 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.
126-
}
127-
128-
- (void)applicationWillTerminate:(UIApplication *)application {
129-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
130-
}
131-
132-
@end
133-
#import "PestoAppDelegate.h"
134-
#import "PestoViewController.h"
135-
136-
@interface PestoAppDelegate ()
137-
138-
@end
139-
140-
@implementation PestoAppDelegate
141-
142-
- (BOOL)application:(UIApplication *)application
143-
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
144-
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
145-
self.window.backgroundColor = [UIColor whiteColor];
146-
[self.window makeKeyAndVisible];
147-
148-
PestoViewController *pestoVC = [[PestoViewController alloc] init];
149-
[self.window setRootViewController:pestoVC];
150-
151-
return YES;
152-
}
153-
154-
- (void)applicationWillResignActive:(UIApplication *)application {
155-
// 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.
156-
// 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.
157-
}
158-
159-
- (void)applicationDidEnterBackground:(UIApplication *)application {
160-
// 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.
161-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
162-
}
163-
164-
- (void)applicationWillEnterForeground:(UIApplication *)application {
165-
// 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.
166-
}
167-
168-
- (void)applicationDidBecomeActive:(UIApplication *)application {
169-
// 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.
170-
}
171-
172-
- (void)applicationWillTerminate:(UIApplication *)application {
173-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
174-
}
175-
176-
@end
177-
#import "PestoAppDelegate.h"
178-
#import "PestoViewController.h"
179-
180-
@interface PestoAppDelegate ()
181-
182-
@end
183-
184-
@implementation PestoAppDelegate
18510

18611
- (BOOL)application:(UIApplication *)application
18712
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
188-
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
189-
self.window.backgroundColor = [UIColor whiteColor];
190-
[self.window makeKeyAndVisible];
19113

192-
PestoViewController *pestoVC = [[PestoViewController alloc] init];
193-
[self.window setRootViewController:pestoVC];
194-
195-
return YES;
196-
}
197-
198-
- (void)applicationWillResignActive:(UIApplication *)application {
199-
// 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.
200-
// 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.
201-
}
202-
203-
- (void)applicationDidEnterBackground:(UIApplication *)application {
204-
// 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.
205-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
206-
}
207-
208-
- (void)applicationWillEnterForeground:(UIApplication *)application {
209-
// 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.
210-
}
211-
212-
- (void)applicationDidBecomeActive:(UIApplication *)application {
213-
// 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.
214-
}
215-
216-
- (void)applicationWillTerminate:(UIApplication *)application {
217-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
218-
}
219-
220-
@end
221-
#import "PestoAppDelegate.h"
222-
#import "PestoViewController.h"
223-
224-
@interface PestoAppDelegate ()
225-
226-
@end
227-
228-
@implementation PestoAppDelegate
229-
230-
- (BOOL)application:(UIApplication *)application
231-
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
232-
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
233-
self.window.backgroundColor = [UIColor whiteColor];
234-
[self.window makeKeyAndVisible];
235-
236-
PestoViewController *pestoVC = [[PestoViewController alloc] init];
237-
[self.window setRootViewController:pestoVC];
238-
239-
return YES;
240-
}
241-
242-
- (void)applicationWillResignActive:(UIApplication *)application {
243-
// 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.
244-
// 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.
245-
}
246-
247-
- (void)applicationDidEnterBackground:(UIApplication *)application {
248-
// 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.
249-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
250-
}
251-
252-
- (void)applicationWillEnterForeground:(UIApplication *)application {
253-
// 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.
254-
}
255-
256-
- (void)applicationDidBecomeActive:(UIApplication *)application {
257-
// 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.
258-
}
259-
260-
- (void)applicationWillTerminate:(UIApplication *)application {
261-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
262-
}
263-
264-
@end
265-
#import "PestoAppDelegate.h"
266-
#import "PestoViewController.h"
267-
268-
@interface PestoAppDelegate ()
269-
270-
@end
271-
272-
@implementation PestoAppDelegate
273-
274-
- (BOOL)application:(UIApplication *)application
275-
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
276-
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
277-
self.window.backgroundColor = [UIColor whiteColor];
278-
[self.window makeKeyAndVisible];
279-
280-
PestoViewController *pestoVC = [[PestoViewController alloc] init];
281-
[self.window setRootViewController:pestoVC];
282-
283-
return YES;
284-
}
285-
286-
- (void)applicationWillResignActive:(UIApplication *)application {
287-
// 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.
288-
// 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.
289-
}
290-
291-
- (void)applicationDidEnterBackground:(UIApplication *)application {
292-
// 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.
293-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
294-
}
295-
296-
- (void)applicationWillEnterForeground:(UIApplication *)application {
297-
// 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.
298-
}
299-
300-
- (void)applicationDidBecomeActive:(UIApplication *)application {
301-
// 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.
302-
}
303-
304-
- (void)applicationWillTerminate:(UIApplication *)application {
305-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
306-
}
307-
308-
@end
309-
#import "PestoAppDelegate.h"
310-
#import "PestoViewController.h"
311-
312-
@interface PestoAppDelegate ()
313-
314-
@end
315-
316-
@implementation PestoAppDelegate
317-
318-
- (BOOL)application:(UIApplication *)application
319-
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
32014
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
32115
self.window.backgroundColor = [UIColor whiteColor];
32216
[self.window makeKeyAndVisible];

0 commit comments

Comments
 (0)