Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm

Issue 2699393003: Cleanup ContentSuggestions, removing unused functions (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm b/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
index e6ff832e00151bf4043fd1df1708f16c2eda9634..3fb509f14aefe104bec348c3038c1326ee9dde0e 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
@@ -12,9 +12,9 @@
#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_article_item.h"
#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h"
#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_commands.h"
-#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_item_actions.h"
#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_stack_item.h"
#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_stack_item_actions.h"
+#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_text_item_actions.h"
#import "ios/chrome/browser/ui/content_suggestions/expandable_item.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -25,8 +25,7 @@ namespace {
const NSTimeInterval kAnimationDuration = 0.35;
} // namespace
-@interface ContentSuggestionsViewController ()<SuggestionsItemActions,
- SuggestionsStackItemActions>
+@interface ContentSuggestionsViewController ()<SuggestionsStackItemActions>
@property(nonatomic, strong)
ContentSuggestionsCollectionUpdater* collectionUpdater;
@@ -101,22 +100,6 @@ const NSTimeInterval kAnimationDuration = 0.35;
[self.suggestionCommandHandler openFaviconAtIndex:innerIndexPath.item];
}
-#pragma mark - SuggestionsItemActions
-
-- (void)addNewItem:(id)sender {
- [self.suggestionCommandHandler addEmptyItem];
-}
-
-#pragma mark - ContentSuggestionsCollectionUpdater forwarding
-
-- (void)addTextItem:(NSString*)title
- subtitle:(NSString*)subtitle
- toSection:(NSInteger)inputSection {
- [self.collectionUpdater addTextItem:title
- subtitle:subtitle
- toSection:inputSection];
-}
-
#pragma mark - SuggestionsStackItemActions
- (void)openReadingListFirstItem:(id)sender {
« no previous file with comments | « ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698