Skip to content
Snippets Groups Projects
Commit 24584167 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

GREEN. Unused methods will be treated after the release.

refs 2490
parent bba86be4
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,6 @@ public class LayoutDataUIUtils { ...@@ -118,7 +118,6 @@ public class LayoutDataUIUtils {
} }
/** Returns the layouted connector's position. */ /** Returns the layouted connector's position. */
// TODO(VA) This method is not used -> remove?
public static Point getConnectorPosition(ILayoutedModelElement layouted) { public static Point getConnectorPosition(ILayoutedModelElement layouted) {
return getPosition(layouted, CONNECTOR_POSITION); return getPosition(layouted, CONNECTOR_POSITION);
} }
...@@ -138,13 +137,11 @@ public class LayoutDataUIUtils { ...@@ -138,13 +137,11 @@ public class LayoutDataUIUtils {
} }
/** Returns the layouted connector's orientation. */ /** Returns the layouted connector's orientation. */
// TODO(VA) This method is not used -> remove?
public static EOrientation getConnectorOrientation(ILayoutedModelElement layouted) { public static EOrientation getConnectorOrientation(ILayoutedModelElement layouted) {
return getOffsetOrientation(layouted, CONNECTOR_OFFSET_ORIENTATION).getOrientation(); return getOffsetOrientation(layouted, CONNECTOR_OFFSET_ORIENTATION).getOrientation();
} }
/** Sets the layouted connector's offset and orientation. */ /** Sets the layouted connector's offset and orientation. */
// TODO(VA) This method is not used -> remove?
public static void setConnectorOffsetOrientation(ILayoutedModelElement layouted, public static void setConnectorOffsetOrientation(ILayoutedModelElement layouted,
OffsetOrientation orientation) { OffsetOrientation orientation) {
setOffsetOrientation(layouted, CONNECTOR_OFFSET_ORIENTATION, orientation.getOffset(), setOffsetOrientation(layouted, CONNECTOR_OFFSET_ORIENTATION, orientation.getOffset(),
...@@ -152,7 +149,6 @@ public class LayoutDataUIUtils { ...@@ -152,7 +149,6 @@ public class LayoutDataUIUtils {
} }
/** Returns the layouted connector's offset. */ /** Returns the layouted connector's offset. */
// TODO(VA) This method is not used -> remove?
public static Offset getConnectorOffset(ILayoutedModelElement layouted) { public static Offset getConnectorOffset(ILayoutedModelElement layouted) {
OffsetOrientation offset = getOffsetOrientation(layouted, CONNECTOR_OFFSET); OffsetOrientation offset = getOffsetOrientation(layouted, CONNECTOR_OFFSET);
if(offset == null) { if(offset == null) {
...@@ -184,7 +180,6 @@ public class LayoutDataUIUtils { ...@@ -184,7 +180,6 @@ public class LayoutDataUIUtils {
* Return the absolute position for a given offset, orientation, size of the * Return the absolute position for a given offset, orientation, size of the
* parent and insets. * parent and insets.
*/ */
// TODO(VA) This method is not used -> remove?
public static Point getAbsolute(OffsetOrientation oo, Rectangle parentBounds, int parentInsets) { public static Point getAbsolute(OffsetOrientation oo, Rectangle parentBounds, int parentInsets) {
Dimension d = createDimension(parentBounds.width, parentBounds.height, ""); Dimension d = createDimension(parentBounds.width, parentBounds.height, "");
return getAbsolute(oo, d, parentInsets); return getAbsolute(oo, d, parentInsets);
......
...@@ -97,7 +97,6 @@ public class RectangleLayoutUIUtils { ...@@ -97,7 +97,6 @@ public class RectangleLayoutUIUtils {
* the old size to be adjusted * the old size to be adjusted
* @return the new dimensions * @return the new dimensions
*/ */
// TODO(VA) This method is not used -> remove?
public static Dimension retainMinimumRectangularShapeSize(Dimension oldSize) { public static Dimension retainMinimumRectangularShapeSize(Dimension oldSize) {
return clampRectangularShapeSize(oldSize, DEFAULT_SHAPE_MINIMUM_WIDTH, return clampRectangularShapeSize(oldSize, DEFAULT_SHAPE_MINIMUM_WIDTH,
DEFAULT_SHAPE_MINIMUM_HEIGHT); DEFAULT_SHAPE_MINIMUM_HEIGHT);
......
...@@ -46,14 +46,12 @@ public final class SnapToGridUtils { ...@@ -46,14 +46,12 @@ public final class SnapToGridUtils {
* Modifies the x and y coordinates of the given point to be on the grid of * Modifies the x and y coordinates of the given point to be on the grid of
* the given size. * the given size.
*/ */
// TODO(VA) This method is not used -> remove?
public static void snapToGrid(Point p, int gridSize) { public static void snapToGrid(Point p, int gridSize) {
p.x = snapToGrid(p.x, gridSize); p.x = snapToGrid(p.x, gridSize);
p.y = snapToGrid(p.y, gridSize); p.y = snapToGrid(p.y, gridSize);
} }
/** Modifies the x and y coordinates of the given point to be on the grid. */ /** 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) { public static void snapToGrid(Point p) {
p.x = snapToGrid(p.x, DefaultLayoutConstants.DEFAULT_GRID_SIZE); p.x = snapToGrid(p.x, DefaultLayoutConstants.DEFAULT_GRID_SIZE);
p.y = snapToGrid(p.y, DefaultLayoutConstants.DEFAULT_GRID_SIZE); p.y = snapToGrid(p.y, DefaultLayoutConstants.DEFAULT_GRID_SIZE);
......
...@@ -65,7 +65,6 @@ public class StatusUtils { ...@@ -65,7 +65,6 @@ public class StatusUtils {
* @param message * @param message
* the message * the message
*/ */
// TODO(VA) This method is not used -> remove?
public static void setStatusMessage(String message) { public static void setStatusMessage(String message) {
if(getStatusLine() != null) { if(getStatusLine() != null) {
getStatusLine().setMessage(message); getStatusLine().setMessage(message);
......
...@@ -118,7 +118,6 @@ public class TableViewerUtils { ...@@ -118,7 +118,6 @@ public class TableViewerUtils {
* the column's editing support * the column's editing support
* @return the configured viewer column * @return the configured viewer column
*/ */
// TODO(VA) This method is not used -> remove?
public static TableViewerColumn createWeightedColumn(TableViewer viewer, int widthWeight, public static TableViewerColumn createWeightedColumn(TableViewer viewer, int widthWeight,
String title, String tooltip, ColumnLabelProvider labelProvider, String title, String tooltip, ColumnLabelProvider labelProvider,
EditingSupport editingSupport) { EditingSupport editingSupport) {
...@@ -192,7 +191,6 @@ public class TableViewerUtils { ...@@ -192,7 +191,6 @@ public class TableViewerUtils {
} }
/** Editing support for numbers. */ /** Editing support for numbers. */
// TODO(VA) This method is not used -> remove?
public static abstract class NumberEditingSupport extends EditingSupport { public static abstract class NumberEditingSupport extends EditingSupport {
/** The parent where the editing support is needed. */ /** The parent where the editing support is needed. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment