Index: ios/showcase/suggestions/sc_suggestions_coordinator.mm |
diff --git a/ios/showcase/suggestions/sc_suggestions_coordinator.mm b/ios/showcase/suggestions/sc_suggestions_coordinator.mm |
deleted file mode 100644 |
index 332795cd2e0ddbb9eb5dbe3722c7292499c2a505..0000000000000000000000000000000000000000 |
--- a/ios/showcase/suggestions/sc_suggestions_coordinator.mm |
+++ /dev/null |
@@ -1,47 +0,0 @@ |
-// Copyright 2016 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#import "ios/showcase/suggestions/sc_suggestions_coordinator.h" |
- |
-#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_commands.h" |
-#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.h" |
-#import "ios/showcase/common/protocol_alerter.h" |
- |
-#if !defined(__has_feature) || !__has_feature(objc_arc) |
-#error "This file requires ARC support." |
-#endif |
- |
-@interface SCSuggestionsCoordinator () |
- |
-@property(nonatomic, strong) |
- ContentSuggestionsViewController* suggestionViewController; |
-@property(nonatomic, strong) ProtocolAlerter* alerter; |
- |
-@end |
- |
-@implementation SCSuggestionsCoordinator |
- |
-@synthesize baseViewController; |
-@synthesize suggestionViewController = _suggestionViewController; |
-@synthesize alerter = _alerter; |
- |
-#pragma mark - Coordinator |
- |
-- (void)start { |
- self.alerter = [[ProtocolAlerter alloc] |
- initWithProtocols:@[ @protocol(ContentSuggestionsCommands) ]]; |
- self.alerter.baseViewController = self.baseViewController; |
- |
- _suggestionViewController = [[ContentSuggestionsViewController alloc] |
- initWithStyle:CollectionViewControllerStyleDefault |
- dataSource:nil]; |
- |
- _suggestionViewController.suggestionCommandHandler = |
- reinterpret_cast<id<ContentSuggestionsCommands>>(self.alerter); |
- |
- [self.baseViewController pushViewController:_suggestionViewController |
- animated:YES]; |
-} |
- |
-@end |