Skip to content

Commit

Permalink
IOS-1733 Delete getMoreSpace toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
mgolovko committed Sep 18, 2023
1 parent df4f346 commit 918ccc5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,13 @@ final class FileStorageViewModel: ObservableObject {
let used = byteCountFormatter.string(fromByteCount: bytesUsed)
let limit = byteCountFormatter.string(fromByteCount: bytesLimit)
let local = byteCountFormatter.string(fromByteCount: localBytesUsage)
let localPercentUsage = Double(localBytesUsage) / Double(bytesLimit)

spaceInstruction = Loc.FileStorage.Space.instruction(limit)
spaceUsed = Loc.FileStorage.Space.used(used, limit)
percentUsage = Double(bytesUsed) / Double(bytesLimit)
locaUsed = Loc.FileStorage.Local.used(local)
spaceUsedWarning = percentUsage >= Constants.warningPercent
if FeatureFlags.getMoreSpace {
let localPercentUsage = Double(localBytesUsage) / Double(bytesLimit)
showGetMoreSpaceButton = percentUsage >= Constants.warningPercent || localPercentUsage >= Constants.warningPercent
}
showGetMoreSpaceButton = percentUsage >= Constants.warningPercent || localPercentUsage >= Constants.warningPercent
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ public extension FeatureDescription {
type: .feature(author: "m@anytype.io", releaseVersion: "0.22.0"),
defaultValue: true
)

static let getMoreSpace = FeatureDescription(
title: "Get more space - IOS-1307",
type: .feature(author: "m@anytype.io", releaseVersion: "0.23.0"),
defaultValue: true
)

static let deleteObjectPlaceholder = FeatureDescription(
title: "Delete object placeholder - IOS-960",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ public extension FeatureFlags {
value(for: .migrationGuide)
}

static var getMoreSpace: Bool {
value(for: .getMoreSpace)
}

static var deleteObjectPlaceholder: Bool {
value(for: .deleteObjectPlaceholder)
}
Expand Down Expand Up @@ -89,7 +85,6 @@ public extension FeatureFlags {
.fullInlineSetImpl,
.dndOnCollectionsAndSets,
.migrationGuide,
.getMoreSpace,
.deleteObjectPlaceholder,
.showAllFilesInBin,
.superNewButtonLoadingState,
Expand Down

0 comments on commit 918ccc5

Please sign in to comment.