i don't think we need this

incremental-batches
Rich Harris 3 weeks ago
parent 0c5083ce2b
commit e12ac55b57

@ -187,9 +187,6 @@ export class Batch {
/** @type {Map<Value, number>} */
previous_wvs = new Map();
/** @type {Map<Reaction, number>} */
previous_cvs = new Map();
/**
* A map of branches that still exist, but will be destroyed when this batch
* is committed we skip over these during `process`.
@ -478,7 +475,6 @@ export class Batch {
capture_derived(derived, value) {
if (derived.v !== UNINITIALIZED && !this.previous.has(derived)) {
this.previous.set(derived, derived.v);
this.previous_cvs.set(derived, derived.cv);
}
// Don't save errors in `batch_values`, or they won't be thrown in `runtime.js#get`
@ -781,12 +777,6 @@ export class Batch {
}
}
for (const [reaction, cv] of batch.previous_cvs) {
if (!batch_cvs.has(reaction)) {
batch_cvs.set(reaction, cv);
}
}
for (const [value, wv] of batch.previous_wvs) {
if (!batch_wvs.has(value)) {
batch_wvs.set(value, wv);

Loading…
Cancel
Save