From e4a64ecc32ff754e5995a34f8955cac5a2bc3372 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Wed, 27 Jun 2012 00:03:05 -0700 Subject: j3dcore: remove some unused variables, unneeded casting in BackgroundRetained Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/BackgroundRetained.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/classes') diff --git a/src/classes/share/javax/media/j3d/BackgroundRetained.java b/src/classes/share/javax/media/j3d/BackgroundRetained.java index cc32217..e3c97c4 100644 --- a/src/classes/share/javax/media/j3d/BackgroundRetained.java +++ b/src/classes/share/javax/media/j3d/BackgroundRetained.java @@ -517,9 +517,6 @@ ArrayList fogs = new ArrayList(); * it adds itself to the list of lights */ void setLive(SetLiveState s) { - TransformGroupRetained[] tlist; - int i; - super.doSetLive(s); if (inImmCtx) { @@ -583,8 +580,7 @@ ArrayList fogs = new ArrayList(); // Initialize some mirror values if (boundingLeaf != null) { - transformedRegion = - (Bounds)boundingLeaf.mirrorBoundingLeaf.transformedRegion; + transformedRegion = boundingLeaf.mirrorBoundingLeaf.transformedRegion; } else { // Evaluate applicationRegion if not null if (applicationRegion != null) { @@ -638,9 +634,8 @@ ArrayList fogs = new ArrayList(); } if (geometryBranch != null) { - BranchGroupRetained branch = - (BranchGroupRetained)geometryBranch.retained; - clearGeometryBranch((BranchGroupRetained)geometryBranch.retained); + BranchGroupRetained branch = (BranchGroupRetained)geometryBranch.retained; + clearGeometryBranch(branch); // add background geometry nodes to setLiveState's nodeList s.nodeList.addAll(setLiveState.nodeList); s.ogList.addAll(setLiveState.ogList); @@ -663,13 +658,12 @@ ArrayList fogs = new ArrayList(); // The update Object function. synchronized void updateImmediateMirrorObject(Object[] objs) { int component = ((Integer)objs[1]).intValue(); - Transform3D trans; // If initialization // Bounds message only sent when boundingleaf is null if ((component & BOUNDS_CHANGED) != 0) { if (objs[2] != null) { - transformedRegion = ((Bounds)((Bounds) objs[2])).copy(transformedRegion); + transformedRegion = ((Bounds) objs[2]).copy(transformedRegion); transformedRegion.transform( (Bounds) objs[2], getCurrentLocalToVworld()); } -- cgit v1.2.3