summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2003-10-31 23:38:02 +0000
committerSilenio Quarti <silenio>2003-10-31 23:38:02 +0000
commit2e0402f1595f385e31c21821daaa1d04640630cd (patch)
tree4612ac4e5d4d5f0d9191e1dab031507de68e5e11
parent6e424e9e28bf71e917559ecb03b86644fa3aa7e6 (diff)
downloadeclipse.platform.swt-2e0402f1595f385e31c21821daaa1d04640630cd.tar.gz
eclipse.platform.swt-2e0402f1595f385e31c21821daaa1d04640630cd.tar.xz
eclipse.platform.swt-2e0402f1595f385e31c21821daaa1d04640630cd.zip
unused var
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java6
2 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
index 1e48808eb4..614f76428b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -1876,7 +1876,6 @@ public int internal_new_GC (GCData data) {
if ((data.style & mask) == 0) {
data.style |= style & (mask | SWT.MIRRORED);
}
- int fontHandle = fontHandle ();
data.drawable = window;
data.device = display;
data.background = getBackgroundColor ();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
index 430f5870fe..bdf7c28021 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java
@@ -323,15 +323,15 @@ public boolean open () {
cursorOrientation |= hStyle;
}
- Point cursorPos;
- int mask = OS.GDK_BUTTON1_MASK | OS.GDK_BUTTON2_MASK | OS.GDK_BUTTON3_MASK;
- boolean mouseDown = (state [0] & mask) != 0;
/*
* The following is intentionally commented. Since gtk does not currently
* support pointer warping, the resize cursor cannot be adjusted. If this
* capability is added in the future then the following should be uncommented,
* and the #adjustResizeCursor method can be copied from another platform.
*/
+// Point cursorPos;
+// int mask = OS.GDK_BUTTON1_MASK | OS.GDK_BUTTON2_MASK | OS.GDK_BUTTON3_MASK;
+// boolean mouseDown = (state [0] & mask) != 0;
// if (!mouseDown) {
// if ((style & SWT.RESIZE) != 0) {
// cursorPos = adjustResizeCursor (xDisplay, xWindow);