Skip to content

Commit 3d6da41

Browse files
authored
chore: remove some unused code (#15747)
1 parent a5240cc commit 3d6da41

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

packages/svelte/src/internal/client/reactivity/sources.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @import { Derived, Effect, Reaction, Source, Value } from '#client' */
1+
/** @import { Derived, Effect, Source, Value } from '#client' */
22
import { DEV } from 'esm-env';
33
import {
44
active_reaction,
@@ -12,7 +12,6 @@ import {
1212
increment_write_version,
1313
update_effect,
1414
reaction_sources,
15-
set_reaction_sources,
1615
check_dirtiness,
1716
untracking,
1817
is_destroying_effect,

packages/svelte/src/internal/client/runtime.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,11 @@ export function set_active_effect(effect) {
9494
*/
9595
export let reaction_sources = null;
9696

97-
/**
98-
* @param {Source[] | null} sources
99-
*/
100-
export function set_reaction_sources(sources) {
101-
reaction_sources = sources;
102-
}
103-
10497
/** @param {Value} value */
10598
export function push_reaction_value(value) {
10699
if (active_reaction !== null && active_reaction.f & EFFECT_IS_UPDATING) {
107100
if (reaction_sources === null) {
108-
set_reaction_sources([value]);
101+
reaction_sources = [value];
109102
} else {
110103
reaction_sources.push(value);
111104
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy