From 835e22d754cd0f493e536eab7a55c00a07f4c266 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Fri, 14 Mar 2025 01:53:26 +1100 Subject: [PATCH] [Cleanup] Removed unused convenience setter - reroutes (#768) - New features are making the reroutes convenience setter unmanageable. - Not currently in use. - Prefer `configure()`, as it includes validation. --- src/LGraph.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/LGraph.ts b/src/LGraph.ts index 5c8aafb97..a232d073e 100644 --- a/src/LGraph.ts +++ b/src/LGraph.ts @@ -144,23 +144,6 @@ export class LGraph implements LinkNetwork, Serialisable { return this.#reroutes } - public set reroutes(value: Map) { - if (!value) throw new TypeError("Attempted to set LGraph.reroutes to a falsy value.") - - const reroutes = this.#reroutes - if (value.size === 0) { - reroutes.clear() - return - } - - for (const rerouteId of reroutes.keys()) { - if (!value.has(rerouteId)) reroutes.delete(rerouteId) - } - for (const [id, reroute] of value) { - reroutes.set(id, reroute) - } - } - /** @deprecated See {@link state}.{@link LGraphState.lastNodeId lastNodeId} */ get last_node_id() { return this.state.lastNodeId