diff options
author | Harvey Harrison <[email protected]> | 2012-06-27 00:03:05 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-06-27 00:03:05 -0700 |
commit | e4a64ecc32ff754e5995a34f8955cac5a2bc3372 (patch) | |
tree | 7d3f7fb68cc10671ef95617e67cb59c43b7c37f5 /src/classes | |
parent | ce44eaf775e466399fe54fe6cc443298c936edce (diff) |
j3dcore: remove some unused variables, unneeded casting in BackgroundRetained
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/share/javax/media/j3d/BackgroundRetained.java | 14 |
1 files changed, 4 insertions, 10 deletions
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<FogRetained> fogs = new ArrayList<FogRetained>(); * 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<FogRetained> fogs = new ArrayList<FogRetained>(); // 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<FogRetained> fogs = new ArrayList<FogRetained>(); } 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<FogRetained> fogs = new ArrayList<FogRetained>(); // 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()); } |