Skip to content

Commit

Permalink
Temporarily remove commented out code (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciek-rdx committed Jul 7, 2023
1 parent 63dbda6 commit 8997899
Show file tree
Hide file tree
Showing 25 changed files with 1 addition and 1,709 deletions.
12 changes: 0 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ package.addModules([
dependencies: [
"AuthorizedDappsClient",
"CacheClient",
"EditPersonaFeature",
"PersonasFeature",
"GatewayAPI",
],
Expand Down Expand Up @@ -168,7 +167,6 @@ package.addModules([
"CreatePersonaFeature",
"CacheClient",
"ChooseAccountsFeature",
"EditPersonaFeature",
"GatewayAPI",
"GatewaysClient", // get current network
"RadixConnectClient",
Expand Down Expand Up @@ -199,14 +197,6 @@ package.addModules([
],
tests: .no
),
.feature(
name: "EditPersonaFeature",
dependencies: [
"PersonasClient",
"Profile",
],
tests: .no
),
.feature(
name: "FeaturesPreviewerFeature",
featureSuffixDroppedFromFolderName: true,
Expand Down Expand Up @@ -336,7 +326,6 @@ package.addModules([
name: "PersonaDetailsFeature",
dependencies: [
"AuthorizedDappsClient",
"EditPersonaFeature",
"CreateAuthKeyFeature",
"GatewayAPI",
],
Expand Down Expand Up @@ -396,7 +385,6 @@ package.addModules([
"RadixConnectClient",
"ScanQRFeature",
"SecurityStructureConfigurationListFeature",
"EditPersonaFeature",
"ProfileBackupsFeature",
],
tests: .yes()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ public struct CreationOfPersona: Sendable, FeatureReducer {
personaData: PersonaData? = nil
) {
self.name = name
#if DEBUG
// FIXME: REMOVE THIS TEMPORARY SETTING OF PERSONA DATA!
self.personaData = .previewValue
#else
self.personaData = .init()
#endif
self.derivePublicKeys = .init(
derivationPathOption: .nextBasedOnFactorSource(
networkOption: .useCurrent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public struct NewPersonaInfo: Sendable, FeatureReducer {
public var inputtedName: String
public var sanitizedName: NonEmptyString?

// FIXME: Build support for input of persona "fields"/"entries"!
public var personaData: PersonaData
public var focusedInputField: InputField?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ extension NewPersonaInfo {
public let focusedInputField: State.InputField?

public struct SanitizedNameRequirement: Equatable {
// FIXME: Allow input of `PersonaData`!
public let sanitizedName: NonEmptyString
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ extension CreatePersonaCoordinator {
let .root(.step1_newPersonaInfo(.delegate(.proceed(name, fields)))),
let .path(.element(_, action: .step1_newPersonaInfo(.delegate(.proceed(name, fields))))):

// FIXME: use "fields"
state.path.append(.step2_creationOfPersona(.init(
name: name
)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ struct Login_Preview: PreviewProvider {
initialState: .previewValue,
reducer: Login()
.dependency(\.accountsClient, .previewValueTwoAccounts())
// FIXME: fix previews with PersonaData
// .dependency(\.authorizedDappsClient, .previewValueOnePersona())
.dependency(\.personasClient, .previewValueTwoPersonas(existing: true))
.dependency(\.personasClient, .previewValueTwoPersonas(existing: false))
)
Expand Down

This file was deleted.

Loading

0 comments on commit 8997899

Please sign in to comment.