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

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

Issue 2798963002: Remove unused code (Closed)
Patch Set: Created 3 years, 8 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
Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm b/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm
index c87d9bf8854e1189dde65d5d545d71d8682e5b14..44dbd2a81c3a4b41f794be24be556a63fd1422ba 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm
@@ -13,12 +13,8 @@
#import "ios/chrome/browser/ui/collection_view/collection_view_controller.h"
#import "ios/chrome/browser/ui/collection_view/collection_view_model.h"
#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_article_item.h"
-#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_button_item.h"
-#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_expandable_item.h"
-#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_favicon_item.h"
#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_footer_item.h"
#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_reading_list_item.h"
-#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_stack_item.h"
#import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_text_item.h"
#import "ios/chrome/browser/ui/content_suggestions/content_suggestion.h"
#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sink.h"
@@ -43,11 +39,7 @@ using CSCollectionViewModel = CollectionViewModel<CSCollectionViewItem*>;
// Enum defining the ItemType of this ContentSuggestionsCollectionUpdater.
typedef NS_ENUM(NSInteger, ItemType) {
- ItemTypeText = kItemTypeEnumZero,
- ItemTypeArticle,
- ItemTypeExpand,
- ItemTypeStack,
- ItemTypeFavicon,
+ ItemTypeArticle = kItemTypeEnumZero,
ItemTypeFooter,
ItemTypeHeader,
ItemTypeEmpty,
@@ -55,8 +47,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
};
typedef NS_ENUM(NSInteger, SectionIdentifier) {
- SectionIdentifierBookmarks = kSectionIdentifierEnumZero,
- SectionIdentifierArticles,
+ SectionIdentifierArticles = kSectionIdentifierEnumZero,
SectionIdentifierReadingList,
SectionIdentifierDefault,
};
@@ -90,9 +81,6 @@ ContentSuggestionType ContentSuggestionTypeForItemType(NSInteger type) {
SectionIdentifier SectionIdentifierForInfo(
ContentSuggestionsSectionInformation* info) {
switch (info.sectionID) {
- case ContentSuggestionsSectionBookmarks:
- return SectionIdentifierBookmarks;
-
case ContentSuggestionsSectionArticles:
return SectionIdentifierArticles;

Powered by Google App Engine
This is Rietveld 408576698