Skip to content

Commit

Permalink
remove purge from NVA
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelerchian committed Feb 15, 2024
1 parent 1e40a53 commit abbe3e4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions machine-runner/src/runner/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,13 +834,6 @@ namespace NextValueAwaiter {
return retval
}

const purge = () => {
const shouldNullify = !!store && 'state' in store
if (shouldNullify) {
store = null
}
}

const purgeWhenMatching = (comparedState: S) => {
if (!!store && 'state' in store && ImplStateOpaque.eq(store.state, comparedState)) {
store = null
Expand Down Expand Up @@ -874,7 +867,6 @@ namespace NextValueAwaiter {
store && 'state' in store ? { state: store.state } : undefined,
consume,
peek,
purge,
purgeWhenMatching,
}
}
Expand Down

0 comments on commit abbe3e4

Please sign in to comment.