From 2e40ddb2007077190b51658182f76220c653e388 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Sat, 23 Feb 2013 17:11:21 -0800 Subject: j3dcore: remove unused local variables and unneeded casts in FogRetained Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/FogRetained.java | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/classes/share/javax/media/j3d/FogRetained.java b/src/classes/share/javax/media/j3d/FogRetained.java index 036c4f6..6529463 100644 --- a/src/classes/share/javax/media/j3d/FogRetained.java +++ b/src/classes/share/javax/media/j3d/FogRetained.java @@ -467,10 +467,7 @@ Vector scopes = new Vector(); void updateImmediateMirrorObject(Object[] objs) { - GroupRetained group; - Vector currentScopes; - int i, nscopes; - Transform3D trans; + int i; int component = ((Integer)objs[1]).intValue(); if ((component & BOUNDS_CHANGED) != 0) { @@ -571,11 +568,6 @@ Vector scopes = new Vector(); * subclasses of fog to add themselves to the list of fogs */ void setLive(SetLiveState s) { - GroupRetained group; - Vector currentScopes; - int i, nscopes; - TransformGroupRetained[] tlist; - if (inImmCtx) { throw new IllegalSharingException(J3dI18N.getString("FogRetained0")); } @@ -678,16 +670,12 @@ Vector scopes = new Vector(); void clearMirrorObject(Object[] args) { Shape3DRetained shape; ArrayList shapeList = (ArrayList)args[2]; - ArrayList removeScopeList = new ArrayList(); for (int i = 0; i < shapeList.size(); i++) { shape = ((GeometryAtom)shapeList.get(i)).source; shape.removeFog(mirrorFog); } mirrorFog.isScoped = false; - - - } @@ -697,7 +685,7 @@ Vector scopes = new Vector(); * it removes itself to the list of fogs */ void clearLive(SetLiveState s) { - int i, j; + int i; GroupRetained group; super.clearLive(s); @@ -734,7 +722,7 @@ Vector scopes = new Vector(); createMessage.args[1]= new Integer(CLEAR_MIRROR); ArrayList removeScopeList = new ArrayList(); for (i = 0; i < scopes.size(); i++) { - group = (GroupRetained)scopes.get(i); + group = scopes.get(i); tempKey.reset(); group.removeAllNodesForScopedFog(mirrorFog, removeScopeList, tempKey); } -- cgit v1.2.3