Skip to content

Commit

Permalink
Revert "Layout Data: static methods are :pure"
Browse files Browse the repository at this point in the history
This reverts commit f047b7f.
  • Loading branch information
joshtynjala committed Aug 17, 2023
1 parent 0ba516e commit b45c5e2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
12 changes: 0 additions & 12 deletions src/feathers/layout/AnchorLayoutData.hx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function center(x:Null<Float> = 0.0, y:Null<Float> = 0.0):AnchorLayoutData {
return new AnchorLayoutData(null, null, null, null, x, y);
}
Expand Down Expand Up @@ -78,7 +77,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function fill(padding:Float = 0.0):AnchorLayoutData {
return new AnchorLayoutData(padding, padding, padding, padding);
}
Expand All @@ -105,7 +103,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function fillHorizontal(padding:Float = 0.0):AnchorLayoutData {
return new AnchorLayoutData(null, padding, null, padding);
}
Expand All @@ -132,7 +129,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function fillVertical(padding:Float = 0.0):AnchorLayoutData {
return new AnchorLayoutData(padding, null, padding, null);
}
Expand All @@ -159,7 +155,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function topLeft(top:Float = 0.0, left:Float = 0.0) {
return new AnchorLayoutData(top, null, null, left);
}
Expand All @@ -186,7 +181,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function topCenter(top:Float = 0.0, horizontalCenter:Float = 0.0) {
return new AnchorLayoutData(top, null, null, null, horizontalCenter);
}
Expand All @@ -213,7 +207,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function topRight(top:Float = 0.0, right:Float = 0.0) {
return new AnchorLayoutData(top, right);
}
Expand All @@ -240,7 +233,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function middleLeft(verticalCenter:Float = 0.0, left:Float = 0.0) {
return new AnchorLayoutData(null, null, null, left, null, verticalCenter);
}
Expand All @@ -267,7 +259,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function middleRight(verticalCenter:Float = 0.0, right:Float = 0.0) {
return new AnchorLayoutData(null, right, null, null, null, verticalCenter);
}
Expand All @@ -294,7 +285,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function bottomLeft(bottom:Float = 0.0, left:Float = 0.0) {
return new AnchorLayoutData(null, null, bottom, left);
}
Expand All @@ -321,7 +311,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function bottomCenter(bottom:Float = 0.0, horizontalCenter:Float = 0.0) {
return new AnchorLayoutData(null, null, bottom, null, horizontalCenter);
}
Expand All @@ -348,7 +337,6 @@ class AnchorLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function bottomRight(bottom:Float = 0.0, right:Float = 0.0) {
return new AnchorLayoutData(null, right, bottom);
}
Expand Down
3 changes: 0 additions & 3 deletions src/feathers/layout/HorizontalLayoutData.hx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class HorizontalLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function fill():HorizontalLayoutData {
return new HorizontalLayoutData(100.0, 100.0);
}
Expand All @@ -73,7 +72,6 @@ class HorizontalLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function fillHorizontal(percentWidth:Float = 100.0):HorizontalLayoutData {
return new HorizontalLayoutData(percentWidth, null);
}
Expand All @@ -99,7 +97,6 @@ class HorizontalLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function fillVertical(percentHeight:Float = 100.0):HorizontalLayoutData {
return new HorizontalLayoutData(null, percentHeight);
}
Expand Down
3 changes: 0 additions & 3 deletions src/feathers/layout/VerticalLayoutData.hx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class VerticalLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function fill():VerticalLayoutData {
return new VerticalLayoutData(100.0, 100.0);
}
Expand All @@ -73,7 +72,6 @@ class VerticalLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function fillHorizontal(percentWidth:Float = 100.0):VerticalLayoutData {
return new VerticalLayoutData(percentWidth, null);
}
Expand All @@ -99,7 +97,6 @@ class VerticalLayoutData extends EventDispatcher implements ILayoutData {
@since 1.0.0
**/
@:pure
public static function fillVertical(percentHeight:Float = 100.0):VerticalLayoutData {
return new VerticalLayoutData(null, percentHeight);
}
Expand Down

0 comments on commit b45c5e2

Please sign in to comment.