summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod <carolyn>2006-03-27 16:46:55 +0000
committerCarolyn MacLeod <carolyn>2006-03-27 16:46:55 +0000
commite7a7f994afd09083232e2396e0a908d2d2cda726 (patch)
tree3d4f6a9530bc689dc4890651b7ff18e33cacc7a8
parentb1ef0e1bec1db24f0133d15fd54bfa69c49309c4 (diff)
downloadeclipse.platform.swt-e7a7f994afd09083232e2396e0a908d2d2cda726.tar.gz
eclipse.platform.swt-e7a7f994afd09083232e2396e0a908d2d2cda726.tar.xz
eclipse.platform.swt-e7a7f994afd09083232e2396e0a908d2d2cda726.zip
remove unused codev3229b
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/carbon/org/eclipse/swt/accessibility/Accessible.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/carbon/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/carbon/org/eclipse/swt/accessibility/Accessible.java
index 0168902b29..97b1eff976 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/carbon/org/eclipse/swt/accessibility/Accessible.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/carbon/org/eclipse/swt/accessibility/Accessible.java
@@ -362,12 +362,6 @@ public class Accessible {
int getRoleDescriptionAttribute (int nextHandler, int theEvent, int userData) {
int code = OS.CallNextEventHandler (nextHandler, theEvent);
- String osRoleDescriptionAttribute = null;
- int [] stringRef = new int [1];
- if (code == OS.noErr) {
- OS.GetEventParameter (theEvent, OS.kEventParamAccessibleAttributeValue, OS.typeCFStringRef, null, 4, null, stringRef);
- osRoleDescriptionAttribute = stringRefToString (stringRef [0]);
- }
AccessibleControlEvent event = new AccessibleControlEvent(this);
event.childID = getChildIDFromEvent(theEvent);
event.detail = osToRole(osRoleAttribute);
@@ -375,6 +369,7 @@ public class Accessible {
AccessibleControlListener listener = (AccessibleControlListener) accessibleControlListeners.elementAt(i);
listener.getRole(event);
}
+ int [] stringRef = new int [1];
stringRef [0] = stringToStringRef (roleToOs (event.detail));
if (stringRef [0] == 0) return code;
int [] stringRef2 = new int [1];