diff options
author | Alexander Kurtakov | 2013-07-23 13:21:15 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2013-07-23 13:21:15 +0000 |
commit | c27f9051e97edb029bb1c89f00fba0a1a7c3c9d3 (patch) | |
tree | d80cc37d091f3c9a5b238b7adb169f115b3ccbdd | |
parent | c7907f96191641b1b0c373205c20d6cc221d8499 (diff) | |
download | eclipse.platform.swt-c27f9051e97edb029bb1c89f00fba0a1a7c3c9d3.tar.gz eclipse.platform.swt-c27f9051e97edb029bb1c89f00fba0a1a7c3c9d3.tar.xz eclipse.platform.swt-c27f9051e97edb029bb1c89f00fba0a1a7c3c9d3.zip |
Remove useless overriding method.
Simply calling super method is not needed.
Removed are get/setOrientation which are in super class now and release*
methods that no longer do anything else but to call the super release.
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
7 files changed, 0 insertions, 89 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java index b790cdf2ae..8e30f0742e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java @@ -4465,21 +4465,6 @@ int getOffsetAtPoint(int x, int y, int[] trailing, boolean inTextOnly) { } return offset + lineOffset; } -/** - * Returns the orientation of the receiver. - * - * @return the orientation style - * - * @exception SWTException <ul> - * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> - * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> - * </ul> - * - * @since 2.1.2 - */ -public int getOrientation () { - return super.getOrientation (); -} /** * Returns the index of the last partially visible line. * diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java index 258d7eaa03..801a58b3d5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java @@ -468,15 +468,6 @@ public void internal_dispose_GC(long /*int*/ hDC, GCData data) { } } -/** - * Releases any internal state prior to destroying this printer. - * This method is called internally by the dispose - * mechanism of the <code>Device</code> class. - */ -protected void release () { - super.release(); -} - /** * Starts a print job and returns true if the job started successfully * and false otherwise. diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskBar.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskBar.java index 56a5e0a549..e26c2117e8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskBar.java @@ -163,11 +163,6 @@ void releaseChildren (boolean destroy) { super.releaseChildren (destroy); } -void releaseParent () { - super.releaseParent (); -// if (display.taskBar == this) display.taskBar = null; -} - void reskinChildren (int flags) { if (items != null) { for (int i=0; i<items.length; i++) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java index 72e24c5d07..4a010ba631 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java @@ -930,22 +930,6 @@ String getNameText () { } /** - * Returns the orientation of the receiver. - * - * @return the orientation style - * - * @exception SWTException <ul> - * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> - * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> - * </ul> - * - * @since 2.1.2 - */ -public int getOrientation () { - return super.getOrientation (); -} - -/** * Returns a <code>Point</code> whose x coordinate is the * character position representing the start of the selection * in the receiver's text field, and whose y coordinate is the @@ -1915,24 +1899,6 @@ void setOrientation (boolean create) { } /** - * Sets the orientation of the receiver, which must be one - * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>. - * <p> - * - * @param orientation new orientation style - * - * @exception SWTException <ul> - * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> - * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> - * </ul> - * - * @since 2.1.2 - */ -public void setOrientation (int orientation) { - super.setOrientation (orientation); -} - -/** * Sets the selection in the receiver's text field to the * range specified by the argument whose x coordinate is the * start of the selection and whose y coordinate is the end diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java index b85fce6053..ff32372007 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ScrollBar.java @@ -592,11 +592,6 @@ void releaseParent () { if (parent.verticalBar == this) parent.verticalBar = null; } -void releaseWidget () { - super.releaseWidget (); - //parent = null; -} - /** * Removes the listener from the collection of listeners who will * be notified when the user changes the receiver's value. diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java index 40443b9c63..f27314da71 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java @@ -903,10 +903,6 @@ void setCursor (long /*int*/ cursor) { if (cursor == 0) gdk_cursor_unref (defaultCursor); } -void setFontDescription (long /*int*/ font) { - super.setFontDescription (font); -} - void setForegroundColor (GdkColor color) { setForegroundColor (handle, color, false); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java index dd960b52d6..d8cb92a508 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java @@ -1056,23 +1056,6 @@ public String getMessage () { return message; } -/** - * Returns the orientation of the receiver, which will be one of the - * constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>. - * - * @return the orientation style - * - * @exception SWTException <ul> - * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> - * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> - * </ul> - * - * @since 2.1.2 - */ -public int getOrientation () { - return super.getOrientation (); -} - /*public*/ int getPosition (Point point) { checkWidget (); if (point == null) error (SWT.ERROR_NULL_ARGUMENT); |