Skip to content

Commit 995683c

Browse files
author
Momo Ozawa
committed
Delete: references to headerView from BlogDetailsVC
1 parent c8f1c7a commit 995683c

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

WordPress/Classes/ViewRelated/Blog/Blog Details/BlogDetailsViewController.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ typedef NS_ENUM(NSUInteger, BlogDetailsNavigationSource) {
139139
@property (nonatomic, strong) id<ScenePresenter> _Nonnull meScenePresenter;
140140
@property (nonatomic, strong, readonly) CreateButtonCoordinator * _Nullable createButtonCoordinator;
141141
@property (nonatomic, strong, readwrite) UITableView * _Nonnull tableView;
142-
@property (nonatomic, strong, readonly) BlogDetailHeaderView * _Nonnull headerView;
143142
@property (nonatomic) BOOL shouldScrollToViewSite;
144143

145144
- (id _Nonnull)initWithMeScenePresenter:(id<ScenePresenter> _Nonnull)meScenePresenter;

WordPress/Classes/ViewRelated/Blog/Blog Details/BlogDetailsViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ - (instancetype)initWithTitle:(NSString *)title
213213

214214
@interface BlogDetailsViewController () <UIActionSheetDelegate, UIAlertViewDelegate, WPSplitViewControllerDetailProvider, BlogDetailHeaderViewDelegate, UITableViewDelegate, UITableViewDataSource>
215215

216-
@property (nonatomic, strong, readwrite) BlogDetailHeaderView *headerView;
217216
@property (nonatomic, strong) NSArray *headerViewHorizontalConstraints;
218217
@property (nonatomic, strong) NSArray<BlogDetailsSection *> *tableSections;
219218
@property (nonatomic, strong) BlogService *blogService;
@@ -407,8 +406,6 @@ - (void)viewWillAppear:(BOOL)animated
407406

408407
self.navigationItem.title = NSLocalizedString(@"My Site", @"Title of My Site tab");
409408

410-
[self.headerView setBlog:self.blog];
411-
412409
// Configure and reload table data when appearing to ensure pending comment count is updated
413410
[self configureTableViewData];
414411

@@ -1079,7 +1076,6 @@ - (BOOL)shouldDisplayLinkToWPAdmin
10791076

10801077
- (void)switchToBlog:(Blog*)blog
10811078
{
1082-
self.headerView.blog = blog;
10831079
self.blog = blog;
10841080
[self showInitialDetailsForBlog];
10851081
[self.tableView reloadData];
@@ -1728,7 +1724,6 @@ - (void)updateTableViewAndHeader:(void(^)(void))onComplete
17281724
^{
17291725
[weakSelf configureTableViewData];
17301726
[weakSelf reloadTableViewPreservingSelection];
1731-
[weakSelf.headerView setBlog:weakSelf.blog];
17321727
onComplete();
17331728
}];
17341729
}

0 commit comments

Comments
 (0)