Skip to content

Commit 9712d1c

Browse files
committed
Delete deprecated APIs
1 parent 6c30dcc commit 9712d1c

File tree

3 files changed

+0
-91
lines changed

3 files changed

+0
-91
lines changed

Sources/Atoms/Core/Atom/Atom.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ public protocol Atom<Produced>: Sendable {
3636
@MainActor
3737
func effect(context: CurrentContext) -> Effect
3838

39-
/// Deprecated. use `Atom.effect(context:)` instead.
40-
@MainActor
41-
func updated(newValue: Produced, oldValue: Produced, context: CurrentContext)
42-
4339
// --- Internal ---
4440

4541
/// A producer that produces the value of this atom.
@@ -51,9 +47,6 @@ public extension Atom {
5147
func effect(context: CurrentContext) -> Effect where Effect == EmptyEffect {
5248
EmptyEffect()
5349
}
54-
55-
@MainActor
56-
func updated(newValue: Produced, oldValue: Produced, context: CurrentContext) {}
5750
}
5851

5952
public extension Atom where Self == Key {

Sources/Atoms/Core/StoreContext.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ private extension StoreContext {
323323
// Perform side effects first.
324324
let state = getState(of: atom, for: key)
325325
let context = AtomCurrentContext(store: self)
326-
atom.updated(newValue: newValue, oldValue: oldValue, context: context)
327326
state.effect.updated(context: context)
328327

329328
// Calculate topological order for updating downstream efficiently.
@@ -346,7 +345,6 @@ private extension StoreContext {
346345

347346
// Perform side effects before updating downstream.
348347
let state = getState(of: cache.atom, for: key)
349-
cache.atom.updated(newValue: newValue, oldValue: cache.value, context: context)
350348
state.effect.updated(context: context)
351349
}
352350

Sources/Atoms/Deprecated.swift

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

0 commit comments

Comments
 (0)