From d04ea9b0b78f70fb93528a429a096b21eb45a599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Wed, 28 Apr 2021 12:11:38 +0200 Subject: [PATCH] Remove leftover lines from a refactor that didn't do anything --- src/foundry_imports.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/foundry_imports.js b/src/foundry_imports.js index 2067707..f60dd89 100644 --- a/src/foundry_imports.js +++ b/src/foundry_imports.js @@ -33,7 +33,6 @@ export async function moveTokens(draggedToken, selectedTokens) { // Execute the movement path. // Transform each center-to-center ray into a top-left to top-left ray using the prior token offsets. this._state = Ruler.STATES.MOVING; - const tokenAnimationData = selectedTokens.map(token => {return {token, offset: calculateTokenOffset(token, draggedToken)};}); await animateTokens.call(this, selectedTokens, draggedToken, rays, wasPaused); // 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 async function animateTokens(tokens, draggedToken, draggedRays, wasPaused) { - const newRays = draggedRays.filter(r => !r.isPrevious); const tokenAnimationData = tokens.map(token => { const tokenOffset = calculateTokenOffset(token, draggedToken);