Skip to content

Commit f43f3e9

Browse files
authored
Remove unused Plans code (#24168)
* Remove Plans * Remove PagedViewController
1 parent a389ae8 commit f43f3e9

21 files changed

+0
-1427
lines changed

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

-21
Original file line numberDiff line numberDiff line change
@@ -1202,19 +1202,6 @@ - (BlogDetailsSection *)generalSectionViewModel
12021202
[rows addObject:[self blazeRow]];
12031203
}
12041204

1205-
// Temporarily disabled
1206-
// if ([self.blog supports:BlogFeaturePlans] && ![self.blog isWPForTeams]) {
1207-
// BlogDetailsRow *plansRow = [[BlogDetailsRow alloc] initWithTitle:NSLocalizedString(@"Plans", @"Action title. Noun. Links to a blog's Plans screen.")
1208-
// identifier:BlogDetailsPlanCellIdentifier
1209-
// image:[UIImage gridiconOfType:GridiconTypePlans]
1210-
// callback:^{
1211-
// [weakSelf showPlansFromSource:BlogDetailsNavigationSourceRow];
1212-
// }];
1213-
//
1214-
// plansRow.detail = self.blog.planTitle;
1215-
// [rows addObject:plansRow];
1216-
// }
1217-
12181205
if (rows.count == 0) {
12191206
return nil;
12201207
}
@@ -1788,14 +1775,6 @@ - (void)showPlugins
17881775
[self.presentationDelegate presentBlogDetailsViewController:controller];
17891776
}
17901777

1791-
- (void)showPlansFromSource:(BlogDetailsNavigationSource)source
1792-
{
1793-
[self trackEvent:WPAnalyticsStatOpenedPlans fromSource:source];
1794-
PlanListViewController *controller = [[PlanListViewController alloc] initWithStyle:UITableViewStyleGrouped];
1795-
controller.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayModeNever;
1796-
[self.presentationDelegate presentBlogDetailsViewController:controller];
1797-
}
1798-
17991778
- (void)showSettingsFromSource:(BlogDetailsNavigationSource)source
18001779
{
18011780
[self trackEvent:WPAnalyticsStatOpenedSiteSettings fromSource:source];

WordPress/Classes/ViewRelated/Plans/Controllers/PlanComparisonViewController.swift

-53
This file was deleted.

WordPress/Classes/ViewRelated/Plans/Controllers/PlanDetailViewController.swift

-249
This file was deleted.

0 commit comments

Comments
 (0)