aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-01-09 23:34:06 -0800
committerHarvey Harrison <[email protected]>2012-01-09 23:34:06 -0800
commit75c30a94afbb8f00631e3e6be459c26ec6aefeb3 (patch)
treec1a92fa20ccd7357c28a6b35455aa8a5143f92ca
parent7b7c49ca2f0643b1024ed26f52dbadf3e5978fbc (diff)
j3dcore: remove unused variables and unneeded casting from BehaviorStructure
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r--src/classes/share/javax/media/j3d/BehaviorStructure.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/classes/share/javax/media/j3d/BehaviorStructure.java b/src/classes/share/javax/media/j3d/BehaviorStructure.java
index a65a10c..fc46103 100644
--- a/src/classes/share/javax/media/j3d/BehaviorStructure.java
+++ b/src/classes/share/javax/media/j3d/BehaviorStructure.java
@@ -345,7 +345,7 @@ class BehaviorStructure extends J3dStructure {
void insertNodes(Object[] nodes) {
for (int i=0; i<nodes.length; i++) {
- Object node = (Object) nodes[i];
+ Object node = nodes[i];
if (node instanceof BehaviorRetained) {
pendingBehaviors.add(node);
@@ -377,7 +377,6 @@ class BehaviorStructure extends J3dStructure {
void addViewPlatform(ViewPlatformRetained vp) {
int i;
- BehaviorRetained behav;
BehaviorRetained behavArr[] = (BehaviorRetained []) behaviors.toArray(false);
viewPlatforms.add(vp);
@@ -1069,7 +1068,6 @@ class BehaviorStructure extends J3dStructure {
}
final void processVpfXformChanged(UnorderList arrList) {
- ViewPlatformRetained vpf;
Object[] nodes, nodesArr;
int size = arrList.size();
@@ -1112,8 +1110,7 @@ class BehaviorStructure extends J3dStructure {
int size = transformViewPlatformList.arraySize();
for (i=0; i < size; i++) {
- processViewPlatformTransform((ViewPlatformRetained)
- vpArr[i]);
+ processViewPlatformTransform(vpArr[i]);
}
transformViewPlatformList.clear();
}
@@ -1277,7 +1274,6 @@ class BehaviorStructure extends J3dStructure {
// physicalEnvironment may be share by multiple view
View v;
View views[];
- ViewPlatform vp;
ArrayList<ViewPlatformRetained> vpList = universe.viewPlatforms;
physicalEnvironments.clear();
@@ -1509,7 +1505,6 @@ class BehaviorStructure extends J3dStructure {
nodesArr = arrList.toArray(false);
Object[] objArr = (Object[])m.args[1];
Object[] obj;
- BoundingLeafRetained mbleaf;
for (int h=0; h<size; h++) {
nodes = (Object[])nodesArr[h];
@@ -1518,7 +1513,6 @@ class BehaviorStructure extends J3dStructure {
Object[] users = (Object[])obj[i];
Object[] leafObj = new Object[1];
- mbleaf = (BoundingLeafRetained)nodes[i];
for (j = 0; j < users.length; j++) {
if (users[j] instanceof BehaviorRetained) {
leafObj[0] = users[j];