Skip to content

Commit 5df5ed1

Browse files
Josh Katzfacebook-github-bot
Josh Katz
authored andcommitted
Revert D58602799: Add unit tests for BorderRadiusStyle
Differential Revision: D58602799 Original commit changeset: 605bc384267d Original Phabricator Diff: D58602799 fbshipit-source-id: e843aa25f0cb37344a423e886b4e4a2878d89eec
1 parent 07abfce commit 5df5ed1

File tree

2 files changed

+0
-203
lines changed

2 files changed

+0
-203
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/style/ComputedBorderRadius.kt

-17
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77

88
package com.facebook.react.uimanager.style
99

10-
/** Represents the collection of possible computed border radius style properties. */
11-
public enum class ComputedBorderRadiusProp {
12-
COMPUTED_BORDER_TOP_LEFT_RADIUS,
13-
COMPUTED_BORDER_TOP_RIGHT_RADIUS,
14-
COMPUTED_BORDER_BOTTOM_RIGHT_RADIUS,
15-
COMPUTED_BORDER_BOTTOM_LEFT_RADIUS,
16-
}
17-
1810
/** Phsysical edge lengths (in DIPs) for a border-radius. */
1911
public data class ComputedBorderRadius(
2012
val topLeft: Float,
@@ -26,14 +18,5 @@ public data class ComputedBorderRadius(
2618
return topLeft > 0f || topRight > 0f || bottomLeft > 0f || bottomRight > 0f
2719
}
2820

29-
public fun get(property: ComputedBorderRadiusProp): Float {
30-
return when (property) {
31-
ComputedBorderRadiusProp.COMPUTED_BORDER_TOP_LEFT_RADIUS -> topLeft
32-
ComputedBorderRadiusProp.COMPUTED_BORDER_TOP_RIGHT_RADIUS -> topRight
33-
ComputedBorderRadiusProp.COMPUTED_BORDER_BOTTOM_LEFT_RADIUS -> bottomLeft
34-
ComputedBorderRadiusProp.COMPUTED_BORDER_BOTTOM_RIGHT_RADIUS -> bottomRight
35-
}
36-
}
37-
3821
public constructor() : this(0f, 0f, 0f, 0f)
3922
}

packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/BorderRadiusStyleTest.kt

-186
This file was deleted.

0 commit comments

Comments
 (0)