Skip to content

Commit 61187ae

Browse files
committed
Remove feature flag control
1 parent 79787c0 commit 61187ae

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Analytics Hub/AnalyticsTimeRangeCard.swift

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -162,24 +162,5 @@ extension AnalyticsTimeRangeCard {
162162
case monthToDate
163163
case quarterToDate
164164
case yearToDate
165-
166-
/// Wee need to provide a custom `allCases` in order to evict `.custom` while the feature flag is active.
167-
/// We should delete this once the feature flag has been removed.
168-
///
169-
static var allCases: [Range] {
170-
[
171-
ServiceLocator.featureFlagService.isFeatureFlagEnabled(.analyticsHub) ? .custom : nil,
172-
.today,
173-
.yesterday,
174-
.lastWeek,
175-
.lastMonth,
176-
.lastQuarter,
177-
.lastYear,
178-
.weekToDate,
179-
.monthToDate,
180-
.quarterToDate,
181-
yearToDate
182-
].compactMap { $0 }
183-
}
184165
}
185166
}

0 commit comments

Comments
 (0)