Skip to content

Commit b166d3a

Browse files
committed
Get rid of unnecessary method and its tests
1 parent 5b2d58c commit b166d3a

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

src/utils/drag-and-drop-utils.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@ const myDragSource = {
3131
}
3232
};
3333

34-
export function getParentPathFromOffset(
35-
targetParentPath,
36-
sourceParentPathLength,
37-
initialOffsetDifferenceX,
38-
scaffoldBlockPxWidth
39-
) {
40-
const blocksOffset = Math.round(initialOffsetDifferenceX / scaffoldBlockPxWidth);
41-
return targetParentPath.slice(0, Math.max(0, sourceParentPathLength + blocksOffset));
42-
}
43-
4434
function getTargetDepth(dropTargetProps, monitor) {
4535
let dropTargetDepth = 0;
4636
const draggedItem = monitor.getItem();

src/utils/drag-and-drop-utils.test.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)