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
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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. */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment