Skip to content

Commit

Permalink
Remove a few unnecessary initializers from demos (pointfreeco#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed May 15, 2020
1 parent a90c489 commit 4523043
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ let effectsCancellationReducer = Reducer<
struct EffectsCancellationView: View {
let store: Store<EffectsCancellationState, EffectsCancellationAction>

init(store: Store<EffectsCancellationState, EffectsCancellationAction>) {
self.store = store
}

var body: some View {
WithViewStore(self.store) { viewStore in
Form {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@ let nevermindButton = DownloadAlert.Button(
struct DownloadComponent<ID: Equatable>: View {
let store: Store<DownloadComponentState<ID>, DownloadComponentAction>

init(store: Store<DownloadComponentState<ID>, DownloadComponentAction>) {
self.store = store
}

var body: some View {
WithViewStore(self.store) { viewStore in
Button(action: { viewStore.send(.buttonTapped) }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ let cityMapReducer = Reducer<CityMapState, CityMapAction, CityMapEnvironment> {
struct CityMapRowView: View {
let store: Store<CityMapState, CityMapAction>

init(store: Store<CityMapState, CityMapAction>) {
self.store = store
}

var body: some View {
WithViewStore(self.store) { viewStore in
HStack {
Expand Down

0 comments on commit 4523043

Please sign in to comment.