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 |
index 06c6feb1c4692016878f56078b222c4355f6d4d9..227d6cbe9f3f7a47433342ee79c451b3dfc81d9a 100644 |
--- a/ios/showcase/suggestions/sc_suggestions_coordinator.mm |
+++ b/ios/showcase/suggestions/sc_suggestions_coordinator.mm |
@@ -12,7 +12,7 @@ |
#error "This file requires ARC support." |
#endif |
-@interface SCSuggestionsCoordinator ()<SuggestionsCommands> |
+@interface SCSuggestionsCoordinator () |
@property(nonatomic, strong) |
SuggestionsViewController* suggestionViewController; |
@@ -36,27 +36,11 @@ |
_suggestionViewController = [[SuggestionsViewController alloc] |
initWithStyle:CollectionViewControllerStyleDefault]; |
- _suggestionViewController.suggestionCommandHandler = self; |
+ _suggestionViewController.suggestionCommandHandler = |
+ reinterpret_cast<id<SuggestionsCommands>>(self.alerter); |
[self.baseViewController pushViewController:_suggestionViewController |
animated:YES]; |
} |
-#pragma mark - SuggestionsCommands |
- |
-- (void)addEmptyItem { |
- [self.suggestionViewController addTextItem:@"Button clicked" |
- subtitle:@"Item Added!" |
- toSection:5]; |
-} |
- |
-- (void)openReadingList { |
- [static_cast<id<SuggestionsCommands>>(self.alerter) openReadingList]; |
-} |
- |
-- (void)openFirstPageOfReadingList { |
- [static_cast<id<SuggestionsCommands>>(self.alerter) |
- openFirstPageOfReadingList]; |
-} |
- |
@end |