Remove leftover lines from a refactor that didn't do anything

This commit is contained in:
Manuel Vögele
2021-04-28 12:11:38 +02:00
parent ba8ab9d473
commit d04ea9b0b7
-2
View File
@@ -33,7 +33,6 @@ export async function moveTokens(draggedToken, selectedTokens) {
// Execute the movement path. // Execute the movement path.
// Transform each center-to-center ray into a top-left to top-left ray using the prior token offsets. // Transform each center-to-center ray into a top-left to top-left ray using the prior token offsets.
this._state = Ruler.STATES.MOVING; this._state = Ruler.STATES.MOVING;
const tokenAnimationData = selectedTokens.map(token => {return {token, offset: calculateTokenOffset(token, draggedToken)};});
await animateTokens.call(this, selectedTokens, draggedToken, rays, wasPaused); await animateTokens.call(this, selectedTokens, draggedToken, rays, wasPaused);
// Once all animations are complete we can clear the ruler // Once all animations are complete we can clear the ruler
@@ -43,7 +42,6 @@ export async function moveTokens(draggedToken, selectedTokens) {
// This is a modified version code extracted from Ruler.moveToken from foundry 0.7.9 // This is a modified version code extracted from Ruler.moveToken from foundry 0.7.9
async function animateTokens(tokens, draggedToken, draggedRays, wasPaused) { async function animateTokens(tokens, draggedToken, draggedRays, wasPaused) {
const newRays = draggedRays.filter(r => !r.isPrevious); const newRays = draggedRays.filter(r => !r.isPrevious);
const tokenAnimationData = tokens.map(token => { const tokenAnimationData = tokens.map(token => {
const tokenOffset = calculateTokenOffset(token, draggedToken); const tokenOffset = calculateTokenOffset(token, draggedToken);