Remove findEffect (#16343)

GitOrigin-RevId: b8472f5128deac5e7f94fb1ec1e64899a8da510a
This commit is contained in:
Alf Eaton
2024-01-04 09:03:20 +00:00
committed by Copybot
parent dc962832f0
commit 8feef7bf5e
2 changed files with 11 additions and 12 deletions
@@ -12,8 +12,3 @@ export const updateHasEffect =
update.transactions.some(tr =>
tr.effects.some(effect => effect.is(effectType))
)
export const findEffect =
<T>(effectType: StateEffectType<T>) =>
(tr: Transaction) =>
tr.effects.find(effect => effect.is(effectType))