From a2740c308967094271cebfb18554984e7ee4464b Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Mon, 5 Mar 2012 09:46:08 -0800 Subject: j3dcore: remove unneeded casts to View in SoundStructure Signed-off-by: Harvey Harrison --- src/classes/share/javax/media/j3d/SoundStructure.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/classes/share') diff --git a/src/classes/share/javax/media/j3d/SoundStructure.java b/src/classes/share/javax/media/j3d/SoundStructure.java index 26f47d5..832897e 100644 --- a/src/classes/share/javax/media/j3d/SoundStructure.java +++ b/src/classes/share/javax/media/j3d/SoundStructure.java @@ -421,7 +421,7 @@ class SoundStructure extends J3dStructure { for (int i=viewPlatforms.arraySize()- 1; i>=0; i--) { View[] views = vpLists[i].getViewList(); for (int j=(views.length-1); j>=0; j--) { - View v = (View)(views[j]); + View v = views[j]; // XXXX: Shouldn't this be done with messages?? v.soundScheduler.loadSound(sound, forceLoad); } @@ -434,7 +434,7 @@ class SoundStructure extends J3dStructure { for (int i=viewPlatforms.arraySize()- 1; i>=0; i--) { View[] views = vpLists[i].getViewList(); for (int j=(views.length-1); j>=0; j--) { - View v = (View)(views[j]); + View v = views[j]; v.soundScheduler.enableSound(sound); } } @@ -446,7 +446,7 @@ class SoundStructure extends J3dStructure { for (int i=viewPlatforms.arraySize()- 1; i>=0; i--) { View[] views = vpLists[i].getViewList(); for (int j=(views.length-1); j>=0; j--) { - View v = (View)(views[j]); + View v = views[j]; v.soundScheduler.muteSound(sound); } } @@ -458,7 +458,7 @@ class SoundStructure extends J3dStructure { for (int i=viewPlatforms.arraySize()- 1; i>=0; i--) { View[] views = vpLists[i].getViewList(); for (int j=(views.length-1); j>=0; j--) { - View v = (View)(views[j]); + View v = views[j]; v.soundScheduler.pauseSound(sound); } } -- cgit v1.2.3