From 245841676fa90c6a423d87229cbb3ae9b26d6e7e Mon Sep 17 00:00:00 2001
From: Florian Hoelzl <hoelzl@fortiss.org>
Date: Fri, 10 Nov 2017 11:10:23 +0000
Subject: [PATCH] GREEN. Unused methods will be treated after the release. refs
 2490

---
 .../org/fortiss/tooling/base/ui/utils/LayoutDataUIUtils.java | 5 -----
 .../tooling/base/ui/utils/RectangleLayoutUIUtils.java        | 1 -
 .../org/fortiss/tooling/base/ui/utils/SnapToGridUtils.java   | 2 --
 .../src/org/fortiss/tooling/base/ui/utils/StatusUtils.java   | 1 -
 .../org/fortiss/tooling/base/ui/utils/TableViewerUtils.java  | 2 --
 5 files changed, 11 deletions(-)

diff --git a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/LayoutDataUIUtils.java b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/LayoutDataUIUtils.java
index 370ba6535..2c2fc536f 100644
--- a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/LayoutDataUIUtils.java
+++ b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/LayoutDataUIUtils.java
@@ -118,7 +118,6 @@ public class LayoutDataUIUtils {
 	}
 
 	/** Returns the layouted connector's position. */
-	// TODO(VA) This method is not used -> remove?
 	public static Point getConnectorPosition(ILayoutedModelElement layouted) {
 		return getPosition(layouted, CONNECTOR_POSITION);
 	}
@@ -138,13 +137,11 @@ public class LayoutDataUIUtils {
 	}
 
 	/** Returns the layouted connector's orientation. */
-	// TODO(VA) This method is not used -> remove?
 	public static EOrientation getConnectorOrientation(ILayoutedModelElement layouted) {
 		return getOffsetOrientation(layouted, CONNECTOR_OFFSET_ORIENTATION).getOrientation();
 	}
 
 	/** Sets the layouted connector's offset and orientation. */
-	// TODO(VA) This method is not used -> remove?
 	public static void setConnectorOffsetOrientation(ILayoutedModelElement layouted,
 			OffsetOrientation orientation) {
 		setOffsetOrientation(layouted, CONNECTOR_OFFSET_ORIENTATION, orientation.getOffset(),
@@ -152,7 +149,6 @@ public class LayoutDataUIUtils {
 	}
 
 	/** Returns the layouted connector's offset. */
-	// TODO(VA) This method is not used -> remove?
 	public static Offset getConnectorOffset(ILayoutedModelElement layouted) {
 		OffsetOrientation offset = getOffsetOrientation(layouted, CONNECTOR_OFFSET);
 		if(offset == null) {
@@ -184,7 +180,6 @@ public class LayoutDataUIUtils {
 	 * Return the absolute position for a given offset, orientation, size of the
 	 * parent and insets.
 	 */
-	// TODO(VA) This method is not used -> remove?
 	public static Point getAbsolute(OffsetOrientation oo, Rectangle parentBounds, int parentInsets) {
 		Dimension d = createDimension(parentBounds.width, parentBounds.height, "");
 		return getAbsolute(oo, d, parentInsets);
diff --git a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/RectangleLayoutUIUtils.java b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/RectangleLayoutUIUtils.java
index 291967d5f..3b65bce1a 100644
--- a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/RectangleLayoutUIUtils.java
+++ b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/RectangleLayoutUIUtils.java
@@ -97,7 +97,6 @@ public class RectangleLayoutUIUtils {
 	 *            the old size to be adjusted
 	 * @return the new dimensions
 	 */
-	// TODO(VA) This method is not used -> remove?
 	public static Dimension retainMinimumRectangularShapeSize(Dimension oldSize) {
 		return clampRectangularShapeSize(oldSize, DEFAULT_SHAPE_MINIMUM_WIDTH,
 				DEFAULT_SHAPE_MINIMUM_HEIGHT);
diff --git a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/SnapToGridUtils.java b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/SnapToGridUtils.java
index 6e24fd230..83d789c36 100644
--- a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/SnapToGridUtils.java
+++ b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/SnapToGridUtils.java
@@ -46,14 +46,12 @@ public final class SnapToGridUtils {
 	 * Modifies the x and y coordinates of the given point to be on the grid of
 	 * the given size.
 	 */
-	// TODO(VA) This method is not used -> remove?
 	public static void snapToGrid(Point p, int gridSize) {
 		p.x = snapToGrid(p.x, gridSize);
 		p.y = snapToGrid(p.y, gridSize);
 	}
 
 	/** Modifies the x and y coordinates of the given point to be on the grid. */
-	// TODO(VA) This method is not used -> remove?
 	public static void snapToGrid(Point p) {
 		p.x = snapToGrid(p.x, DefaultLayoutConstants.DEFAULT_GRID_SIZE);
 		p.y = snapToGrid(p.y, DefaultLayoutConstants.DEFAULT_GRID_SIZE);
diff --git a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/StatusUtils.java b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/StatusUtils.java
index 6fce15566..f0a0c47de 100644
--- a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/StatusUtils.java
+++ b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/StatusUtils.java
@@ -65,7 +65,6 @@ public class StatusUtils {
 	 * @param message
 	 *            the message
 	 */
-	// TODO(VA) This method is not used -> remove?
 	public static void setStatusMessage(String message) {
 		if(getStatusLine() != null) {
 			getStatusLine().setMessage(message);
diff --git a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/TableViewerUtils.java b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/TableViewerUtils.java
index b99e6af0a..e066a8c0b 100644
--- a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/TableViewerUtils.java
+++ b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/utils/TableViewerUtils.java
@@ -118,7 +118,6 @@ public class TableViewerUtils {
 	 *            the column's editing support
 	 * @return the configured viewer column
 	 */
-	// TODO(VA) This method is not used -> remove?
 	public static TableViewerColumn createWeightedColumn(TableViewer viewer, int widthWeight,
 			String title, String tooltip, ColumnLabelProvider labelProvider,
 			EditingSupport editingSupport) {
@@ -192,7 +191,6 @@ public class TableViewerUtils {
 	}
 
 	/** Editing support for numbers. */
-	// TODO(VA) This method is not used -> remove?
 	public static abstract class NumberEditingSupport extends EditingSupport {
 
 		/** The parent where the editing support is needed. */
-- 
GitLab