From f2c06fa907f5c99b5a099925575908407e97f120 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 19 Jan 2024 14:16:27 -0800 Subject: [PATCH] chore: delete highlight path from connection (#7796) --- core/rendered_connection.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/rendered_connection.ts b/core/rendered_connection.ts index 80fa035e6..d26e34d44 100644 --- a/core/rendered_connection.ts +++ b/core/rendered_connection.ts @@ -22,7 +22,6 @@ import * as eventUtils from './events/utils.js'; import {hasBubble} from './interfaces/i_has_bubble.js'; import * as internalConstants from './internal_constants.js'; import {Coordinate} from './utils/coordinate.js'; -import * as dom from './utils/dom.js'; /** Maximum randomness in workspace units for bumping a block. */ const BUMP_RANDOMNESS = 10; @@ -37,7 +36,6 @@ export class RenderedConnection extends Connection { private readonly dbOpposite: ConnectionDB; private readonly offsetInBlock: Coordinate; private trackedState: TrackedState; - private highlightPath: SVGPathElement | null = null; /** Connection this connection connects to. Null if not connected. */ override targetConnection: RenderedConnection | null = null; @@ -80,10 +78,6 @@ export class RenderedConnection extends Connection { if (this.trackedState === RenderedConnection.TrackedState.TRACKED) { this.db.removeConnection(this, this.y); } - if (this.highlightPath) { - dom.removeNode(this.highlightPath); - this.highlightPath = null; - } } /**