chore: remove some unused code (#15747)

pull/15751/head
Rich Harris 5 months ago committed by GitHub
parent a5240ccfe4
commit 3d6da41b1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,4 +1,4 @@
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
/** @import { Derived, Effect, Source, Value } from '#client' */
import { DEV } from 'esm-env';
import {
active_reaction,
@ -12,7 +12,6 @@ import {
increment_write_version,
update_effect,
reaction_sources,
set_reaction_sources,
check_dirtiness,
untracking,
is_destroying_effect,

@ -94,18 +94,11 @@ export function set_active_effect(effect) {
*/
export let reaction_sources = null;
/**
* @param {Source[] | null} sources
*/
export function set_reaction_sources(sources) {
reaction_sources = sources;
}
/** @param {Value} value */
export function push_reaction_value(value) {
if (active_reaction !== null && active_reaction.f & EFFECT_IS_UPDATING) {
if (reaction_sources === null) {
set_reaction_sources([value]);
reaction_sources = [value];
} else {
reaction_sources.push(value);
}

Loading…
Cancel
Save