From 60479107bb09ac859c92cfd462cc9ac774fff91e Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Fri, 17 Feb 2012 09:59:37 +0000 Subject: [PATCH] Removed some unused variable and method in MotionPath git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9169 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/cinematic/MotionPath.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/engine/src/core/com/jme3/cinematic/MotionPath.java b/engine/src/core/com/jme3/cinematic/MotionPath.java index 64bdc2234..cdb31d011 100644 --- a/engine/src/core/com/jme3/cinematic/MotionPath.java +++ b/engine/src/core/com/jme3/cinematic/MotionPath.java @@ -76,7 +76,6 @@ public class MotionPath implements Savable { */ public float interpolatePath(float time, MotionTrack control) { - float val; float traveledDistance = 0; TempVars vars = TempVars.get(); Vector3f temp = vars.vect1; @@ -103,18 +102,6 @@ public class MotionPath implements Savable { return traveledDistance; } - /** - * computes the distance between the spatial position and the temp vector. - * @param control the control holding the psatial - * @param temp the temp position - * @param store a temp vector3f to store the result - * @return - */ - private float getDist(MotionTrack control, Vector3f temp, Vector3f store) { - store.set(temp); - return store.subtractLocal(control.getSpatial().getLocalTranslation()).length(); - } - private void attachDebugNode(Node root) { if (debugNode == null) { debugNode = new Node();