From f602255518bc07ec55ef2137e1b1099cbccbb452 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Tue, 21 Feb 2012 08:32:04 -0800 Subject: j3dcore: remove code that was stubbed-out in issue 458 Signed-off-by: Harvey Harrison --- .../share/javax/media/j3d/VirtualUniverse.java | 31 +--------------------- .../share/javax/media/j3d/WakeupOnAWTEvent.java | 6 ----- 2 files changed, 1 insertion(+), 36 deletions(-) (limited to 'src') diff --git a/src/classes/share/javax/media/j3d/VirtualUniverse.java b/src/classes/share/javax/media/j3d/VirtualUniverse.java index d5c395c..38ab3ae 100644 --- a/src/classes/share/javax/media/j3d/VirtualUniverse.java +++ b/src/classes/share/javax/media/j3d/VirtualUniverse.java @@ -390,7 +390,7 @@ ArrayList viewIdFreeList = new ArrayList(); /** * Returns the enumeration object of all locales in this virtual universe. - * + * * @return the enumeration object */ public Enumeration getAllLocales() { @@ -680,7 +680,6 @@ synchronized ViewPlatformRetained[] getViewPlatformList() { } void checkForEnableEvents() { - enableComponentEvents(); if (enableFocus) { enableFocusEvents(); } @@ -699,34 +698,6 @@ synchronized ViewPlatformRetained[] getViewPlatformList() { } - void enableComponentEvents() { - // Issue 458 - This method is now a noop - /* - Enumeration cvs; - Canvas3D cv; - ViewPlatformRetained vp; - View views[]; - Object[] vps = getViewPlatformList(); - - if (vps != null) { - for (int i=0; i=0; j--) { - cvs = views[j].getAllCanvas3Ds(); - while(cvs.hasMoreElements()) { - cv = (Canvas3D) cvs.nextElement(); - // offscreen canvas does not have event catcher - if (cv.eventCatcher != null) { - cv.eventCatcher.enableComponentEvents(); - } - } - } - } - } - */ - } - void disableFocusEvents() { ViewPlatformRetained vp; View views[]; diff --git a/src/classes/share/javax/media/j3d/WakeupOnAWTEvent.java b/src/classes/share/javax/media/j3d/WakeupOnAWTEvent.java index e250889..c7bf22e 100644 --- a/src/classes/share/javax/media/j3d/WakeupOnAWTEvent.java +++ b/src/classes/share/javax/media/j3d/WakeupOnAWTEvent.java @@ -32,7 +32,6 @@ package javax.media.j3d; import java.awt.AWTEvent; -import java.awt.event.ComponentEvent; import java.awt.event.FocusEvent; import java.awt.event.KeyEvent; import java.awt.event.MouseEvent; @@ -127,11 +126,6 @@ void addAWTEvent(AWTEvent event) { */ void resetBehaviorCondition(BehaviorStructure bs) { if (enableAWTEventTS != bs.awtEventTimestamp) { - if ((AwtId >= ComponentEvent.COMPONENT_FIRST && - AwtId <= ComponentEvent.COMPONENT_LAST) || - (EventMask & AWTEvent.COMPONENT_EVENT_MASK) != 0) { - behav.universe.enableComponentEvents(); - } if ((AwtId >= FocusEvent.FOCUS_FIRST && AwtId <= FocusEvent.FOCUS_LAST) || (EventMask & AWTEvent.FOCUS_EVENT_MASK) != 0) { behav.universe.enableFocusEvents(); -- cgit v1.2.3