Skip to content

Commit 630137a

Browse files
committed
chore: Remove movingBlock in mover.
This property isn't needed right now.
1 parent 7454959 commit 630137a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/actions/mover.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ export class Mover {
8282

8383
private moveIndicator?: MoveIndicatorBubble;
8484

85-
private movingBlock:
86-
| (IDraggable & IFocusableNode & IBoundedElement & ISelectable)
87-
| null = null;
88-
8985
constructor(protected navigation: Navigation) {}
9086

9187
/**
@@ -158,7 +154,6 @@ export class Mover {
158154
workspace.setKeyboardMoveInProgress(true);
159155
const info = new MoveInfo(workspace, draggable, dragger, blurListener);
160156
this.moves.set(workspace, info);
161-
this.movingBlock = draggable;
162157
// Begin drag.
163158
dragger.onDragStart(info.fakePointerEvent('pointerdown'));
164159
info.updateTotalDelta();
@@ -222,7 +217,6 @@ export class Mover {
222217
*/
223218
finishMove(workspace: WorkspaceSvg) {
224219
const info = this.preDragEndCleanup(workspace);
225-
this.movingBlock = null;
226220

227221
info.dragger.onDragEnd(
228222
info.fakePointerEvent('pointerup'),
@@ -256,7 +250,6 @@ export class Mover {
256250
// Prevent the strategy connecting the block so we just delete one block.
257251
// @ts-expect-error Access to private property connectionCandidate.
258252
dragStrategy.connectionCandidate = null;
259-
this.movingBlock = null;
260253

261254
info.dragger.onDragEnd(
262255
info.fakePointerEvent('pointerup'),

0 commit comments

Comments
 (0)