Skip to content

Commit 0208eb7

Browse files
committed
Leave only yesterday as new range
1 parent eb85aaf commit 0208eb7

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Analytics Hub/Time Range/AnalyticsHubTimeRangeSelection.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,10 @@ private extension AnalyticsHubTimeRangeSelectionType {
8080
return AnalyticsHubYesterdayRangeData(referenceDate: referenceDate, timezone: timezone, calendar: calendar)
8181
case .weekToDate:
8282
return AnalyticsHubWeekRangeData(referenceDate: referenceDate, timezone: timezone, calendar: calendar)
83-
case .lastWeek:
84-
return AnalyticsHubWeekRangeData(referenceDate: referenceDate, timezone: timezone, calendar: calendar)
8583
case .monthToDate:
8684
return AnalyticsHubMonthRangeData(referenceDate: referenceDate, timezone: timezone, calendar: calendar)
87-
case .lastMonth:
88-
return AnalyticsHubMonthRangeData(referenceDate: referenceDate, timezone: timezone, calendar: calendar)
8985
case .yearToDate:
9086
return AnalyticsHubYearRangeData(referenceDate: referenceDate, timezone: timezone, calendar: calendar)
91-
case .lastYear:
92-
return AnalyticsHubYearRangeData(referenceDate: referenceDate, timezone: timezone, calendar: calendar)
9387
}
9488
}
9589
}

WooCommerce/Classes/ViewRelated/Dashboard/Analytics Hub/Time Range/AnalyticsHubTimeRangeSelectionType.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import Yosemite
44
enum AnalyticsHubTimeRangeSelectionType: CaseIterable {
55
case today
66
case yesterday
7-
case lastWeek
8-
case lastMonth
9-
case lastYear
107
case weekToDate
118
case monthToDate
129
case yearToDate
@@ -17,12 +14,6 @@ enum AnalyticsHubTimeRangeSelectionType: CaseIterable {
1714
return Localization.today
1815
case .yesterday:
1916
return Localization.yesterday
20-
case .lastWeek:
21-
return Localization.lastWeek
22-
case .lastMonth:
23-
return Localization.lastMonth
24-
case .lastYear:
25-
return Localization.lastYear
2617
case .weekToDate:
2718
return Localization.weekToDate
2819
case .monthToDate:
@@ -48,9 +39,6 @@ enum AnalyticsHubTimeRangeSelectionType: CaseIterable {
4839
enum Localization {
4940
static let today = NSLocalizedString("Today", comment: "Title of the Analytics Hub Today's selection range")
5041
static let yesterday = NSLocalizedString("Yesterday", comment: "Title of the Analytics Hub Yesterday selection range")
51-
static let lastWeek = NSLocalizedString("Last Week", comment: "Title of the Analytics Hub Last Week selection range")
52-
static let lastMonth = NSLocalizedString("Last Month", comment: "Title of the Analytics Hub Last Month selection range")
53-
static let lastYear = NSLocalizedString("Last Year", comment: "Title of the Analytics Hub Last Year selection range")
5442
static let weekToDate = NSLocalizedString("Week to Date", comment: "Title of the Analytics Hub Week to Date selection range")
5543
static let monthToDate = NSLocalizedString("Month to Date", comment: "Title of the Analytics Hub Month to Date selection range")
5644
static let yearToDate = NSLocalizedString("Year to Date", comment: "Title of the Analytics Hub Year to Date selection range")

0 commit comments

Comments
 (0)