[Cleanup] Removes unused code (#996)

- Removes unused code
- Removes unnecessary globalAlpha reset when drawing reroute highlight
This commit is contained in:
filtered
2025-05-02 08:38:54 +10:00
committed by GitHub
parent cb6020dfc1
commit ee89fc575f
6 changed files with 4 additions and 48 deletions

View File

@@ -1189,9 +1189,9 @@ export class LGraph implements LinkNetwork, Serialisable<SerialisableGraph> {
}
/**
* Returns a reroute by ID, or `undefined` if the ID is `null` or `undefined`.
* @param id ID of reroute to return
* @returns The reroute with the provided {@link id}, otherwise `undefined`. Always returns `undefined` if `id` is `null` or `undefined`.
* Finds the reroute with the provided ID.
* @param id ID of reroute to find
* @returns The reroute with the provided {@link id}, otherwise `undefined`. Always returns `undefined` if `id` is nullish.
*/
getReroute(id: null | undefined): undefined
getReroute(id: RerouteId | null | undefined): Reroute | undefined