[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

@@ -4037,12 +4037,7 @@ export class LGraphCanvas {
if (!LiteGraph.snap_highlights_node || !linkConnector.isConnecting || linkConnectorSnap) return
// Reroute highlight
if (overReroute) {
const { globalAlpha } = ctx
ctx.globalAlpha = 1
overReroute.drawHighlight(ctx, "#ffcc00aa")
ctx.globalAlpha = globalAlpha
}
overReroute?.drawHighlight(ctx, "#ffcc00aa")
// Ensure we're mousing over a node and connecting a link
const node = this.node_over