Skip to content

Commit

Permalink
chore: remove deadcode (#12085)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored Jun 18, 2024
1 parent 399e464 commit 84c4b09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions packages/svelte/src/internal/client/reactivity/deriveds.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ function destroy_derived_children(signal) {

/**
* @param {import('#client').Derived} derived
* @param {boolean} force_schedule
* @returns {void}
*/
export function update_derived(derived, force_schedule) {
export function update_derived(derived) {
var previous_updating_derived = updating_derived;
updating_derived = true;
destroy_derived_children(derived);
Expand All @@ -100,8 +99,7 @@ export function update_derived(derived, force_schedule) {
if (!derived.equals(value)) {
derived.v = value;
derived.version = increment_version();

mark_reactions(derived, DIRTY, force_schedule);
mark_reactions(derived, DIRTY, false);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/svelte/src/internal/client/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export function check_dirtiness(reaction) {
var dependency = dependencies[i];

if (!is_dirty && check_dirtiness(/** @type {import('#client').Derived} */ (dependency))) {
update_derived(/** @type {import('#client').Derived} **/ (dependency), true);
update_derived(/** @type {import('#client').Derived} **/ (dependency));
}

var version = dependency.version;
Expand Down Expand Up @@ -798,7 +798,7 @@ export function get(signal) {
(flags & DERIVED) !== 0 &&
check_dirtiness(/** @type {import('#client').Derived} */ (signal))
) {
update_derived(/** @type {import('#client').Derived} **/ (signal), false);
update_derived(/** @type {import('#client').Derived} **/ (signal));
}

return signal.v;
Expand Down

0 comments on commit 84c4b09

Please sign in to comment.