remove deadcode

pull/10958/head
Dominic Gannaway 7 months ago
parent 57edb0da22
commit 2f2424c130

@ -4,16 +4,15 @@ export const PRE_EFFECT = 1 << 3;
export const RENDER_EFFECT = 1 << 4;
export const BLOCK_EFFECT = 1 << 5;
export const BRANCH_EFFECT = 1 << 6;
export const BIND_EFFECT = 1 << 7;
export const ROOT_EFFECT = 1 << 8;
export const UNOWNED = 1 << 9;
export const CLEAN = 1 << 10;
export const DIRTY = 1 << 11;
export const MAYBE_DIRTY = 1 << 12;
export const INERT = 1 << 13;
export const DESTROYED = 1 << 14;
export const IS_ELSEIF = 1 << 15;
export const EFFECT_RAN = 1 << 16;
export const ROOT_EFFECT = 1 << 7;
export const UNOWNED = 1 << 8;
export const CLEAN = 1 << 9;
export const DIRTY = 1 << 10;
export const MAYBE_DIRTY = 1 << 11;
export const INERT = 1 << 12;
export const DESTROYED = 1 << 13;
export const IS_ELSEIF = 1 << 14;
export const EFFECT_RAN = 1 << 15;
export const UNINITIALIZED = Symbol();
export const STATE_SYMBOL = Symbol('$state');

@ -1,5 +1,5 @@
import { STATE_SYMBOL } from '../../../constants.js';
import { bind_effect, destroy_effect, effect, pre_effect, render_effect } from '../../../reactivity/effects.js';
import { effect, pre_effect, render_effect } from '../../../reactivity/effects.js';
import { untrack } from '../../../runtime.js';
/**

@ -26,7 +26,6 @@ import {
EFFECT_RAN,
BLOCK_EFFECT,
ROOT_EFFECT,
BIND_EFFECT
} from '../constants.js';
import { set } from './sources.js';
import { noop } from '../../common.js';
@ -144,13 +143,6 @@ export function effect(fn) {
return create_effect(EFFECT, fn, false);
}
/**
* @param {() => void | (() => void)} fn
* @returns {import('#client').Effect}
*/
export function bind_effect(fn) {
return create_effect(EFFECT | BIND_EFFECT, fn, false);
}
/**
* Internal representation of `$: ..`
* @param {() => any} deps

@ -23,9 +23,6 @@ import {
BRANCH_EFFECT,
STATE_SYMBOL,
BLOCK_EFFECT,
ROOT_EFFECT,
EFFECT_RAN,
BIND_EFFECT
} from './constants.js';
import { flush_tasks } from './dom/task.js';
import { add_owner } from './dev/ownership.js';
@ -608,11 +605,7 @@ function collect_effects_recursively(
collected_user
);
} else {
if ((flags & BIND_EFFECT) !== 0) {
pre.push(child);
} else {
user.push(child);
}
user.push(child);
}
}
}

Loading…
Cancel
Save