Skip to content

Commit 80c2576

Browse files
authored
Merge pull request #4040 from anyproto/ios-5281-cleanup-old-and-experemental-toggles
IOS-5281 Removed simple sets
2 parents a45e345 + c63ac5c commit 80c2576

File tree

18 files changed

+10
-493
lines changed

18 files changed

+10
-493
lines changed

Anytype/Sources/PresentationLayer/Flows/EditorFlow/EditorCoordinatorView.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ struct EditorCoordinatorView: View {
4747
AllObjectsCoordinatorView(spaceId: spaceId, output: model)
4848
case let .date(data):
4949
DateCoordinatorView(data: data)
50-
case let .simpleSet(data):
51-
SimpleSetCoordinatorView(data: data)
5250
case let .type(data):
5351
let list = EditorListObject(objectId: data.objectId, spaceId: data.spaceId)
5452
EditorSetCoordinatorView(data: list, showHeader: true)

Anytype/Sources/PresentationLayer/Flows/SimpleSetCoordinator/SimpleSetCoordinatorView.swift

Lines changed: 0 additions & 26 deletions
This file was deleted.

Anytype/Sources/PresentationLayer/Flows/SimpleSetCoordinator/SimpleSetCoordinatorViewModel.swift

Lines changed: 0 additions & 20 deletions
This file was deleted.

Anytype/Sources/PresentationLayer/Flows/SpaceHub/SpaceHubCoordinatorViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ final class SpaceHubCoordinatorViewModel: ObservableObject, SpaceHubModuleOutput
312312
let document = documentsProvider.document(objectId: objectId, spaceId: data.spaceId, mode: .preview)
313313
try await document.open()
314314
guard let details = document.details else { return }
315-
guard details.isSupportedForOpening || data.isSimpleSet else {
315+
guard details.isSupportedForOpening else {
316316
toastBarData = ToastBarData(Loc.openTypeError(details.objectType.displayName), type: .neutral)
317317
return
318318
}

Anytype/Sources/PresentationLayer/Modules/HomeNavigationContainer/Panel/ScreenData+Analytics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extension EditorScreenData: HomeClinkNavBarAddMenuRouteProvider {
1515
return .screenRecentOpen
1616
case .bin:
1717
return .screenBin
18-
case .page, .list, .simpleSet:
18+
case .page, .list:
1919
return .screenObject
2020
case .date:
2121
return .screenDate

Anytype/Sources/PresentationLayer/Modules/HomeWidgets/Widgets/SpecificInternalModels/SetObjectWidgetInternalViewModel.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,7 @@ final class SetObjectWidgetInternalViewModel: ObservableObject {
8787
func onOpenObjectTap() {
8888
guard let details = setDocument?.details else { return }
8989
guard let info = widgetObject.widgetInfo(blockId: widgetBlockId) else { return }
90-
let screenData: ScreenData
91-
if details.editorViewType == .type && FeatureFlags.simpleSetForTypes {
92-
screenData = .editor(.simpleSet(EditorSimpleSetObject(objectId: details.id, spaceId: details.spaceId)))
93-
} else {
94-
screenData = ScreenData(details: details, activeViewId: activeViewId)
95-
}
90+
let screenData = ScreenData(details: details, activeViewId: activeViewId)
9691
AnytypeAnalytics.instance().logClickWidgetTitle(
9792
source: .object(type: setDocument?.details?.analyticsType ?? .object(typeId: "")),
9893
createType: info.widgetCreateType

Anytype/Sources/PresentationLayer/Modules/SimpleSet/ImagesGalleryView.swift

Lines changed: 0 additions & 44 deletions
This file was deleted.

Anytype/Sources/PresentationLayer/Modules/SimpleSet/SimpleSetLayout.swift

Lines changed: 0 additions & 6 deletions
This file was deleted.

Anytype/Sources/PresentationLayer/Modules/SimpleSet/SimpleSetState.swift

Lines changed: 0 additions & 11 deletions
This file was deleted.

Anytype/Sources/PresentationLayer/Modules/SimpleSet/SimpleSetView.swift

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)