Skip to content

Commit

Permalink
Remove FXIOS-6745 [v123] Remove .wallpaperOnboardingSheet feature flag (
Browse files Browse the repository at this point in the history
  • Loading branch information
lmarceau committed Jan 9, 2024
1 parent 0754384 commit 5b9594d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 34 deletions.
2 changes: 0 additions & 2 deletions firefox-ios/Client/FeatureFlags/NimbusFlaggableFeature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ enum NimbusFeatureFlagID: String, CaseIterable {
case shareSheetChanges
case shareToolbarChanges
case tabTrayRefactor
case wallpaperOnboardingSheet
case zoomFeature
}

Expand Down Expand Up @@ -81,7 +80,6 @@ struct NimbusFlaggableFeature: HasNimbusSearchBar {
.shareSheetChanges,
.shareToolbarChanges,
.tabTrayRefactor,
.wallpaperOnboardingSheet,
.zoomFeature:
return nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ class WallpaperManager: WallpaperManagerInterface, FeatureFlaggable {

guard cfrsHaveBeenShown,
hasEnoughThumbnailsToShow,
!userDefaults.bool(forKey: PrefsKeys.Wallpapers.OnboardingSeenKey),
featureFlags.isFeatureEnabled(.wallpaperOnboardingSheet,
checking: .buildOnly)
!userDefaults.bool(forKey: PrefsKeys.Wallpapers.OnboardingSeenKey)
else { return false }

return true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,4 @@ struct WallpaperMigrationUtility {
private func markMetadataMigrationComplete() {
userDefaults.set(true, forKey: metadataMigration)
}

private func markLegacyAssetMigrationComplete() {
userDefaults.set(true, forKey: metadataMigration)
}
}
7 changes: 0 additions & 7 deletions firefox-ios/Client/Nimbus/NimbusFeatureFlagLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ final class NimbusFeatureFlagLayer {
case .tabTrayRefactor:
return checkTabTrayRefactorFeature(from: nimbus)

case .wallpaperOnboardingSheet:
return checkNimbusForWallpaperOnboarding(using: nimbus)

case .zoomFeature:
return checkZoomFeature(from: nimbus)
}
Expand Down Expand Up @@ -137,10 +134,6 @@ final class NimbusFeatureFlagLayer {
return status
}

private func checkNimbusForWallpaperOnboarding(using nimbus: FxNimbus) -> Bool {
return nimbus.features.wallpaperFeature.value().onboardingSheet
}

private func checkQRCodeCoordinatorRefactorFeature(from nimbus: FxNimbus) -> Bool {
return nimbus.features.qrCodeCoordinatorRefactor.value().enabled
}
Expand Down
17 changes: 0 additions & 17 deletions firefox-ios/nimbus-features/wallpaperFeature.yaml

This file was deleted.

1 change: 0 additions & 1 deletion firefox-ios/nimbus.fml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ include:
- nimbus-features/spotlightSearchFeature.yaml
- nimbus-features/tabTrayFeature.yaml
- nimbus-features/tabTrayRefactorFeature.yaml
- nimbus-features/wallpaperFeature.yaml
- nimbus-features/zoomFeature.yaml

0 comments on commit 5b9594d

Please sign in to comment.