chore: delete highlight path from connection (#7796)

This commit is contained in:
Beka Westberg
2024-01-19 14:16:27 -08:00
parent 318621d3c0
commit f2c06fa907

View File

@@ -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;
}
}
/**