Skip to content

Commit

Permalink
Revert D58602799: Add unit tests for BorderRadiusStyle
Browse files Browse the repository at this point in the history
Differential Revision:
D58602799

Original commit changeset: 605bc384267d

Original Phabricator Diff: D58602799

fbshipit-source-id: e843aa25f0cb37344a423e886b4e4a2878d89eec
  • Loading branch information
Josh Katz authored and facebook-github-bot committed Jun 17, 2024
1 parent 07abfce commit 5df5ed1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 203 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@

package com.facebook.react.uimanager.style

/** Represents the collection of possible computed border radius style properties. */
public enum class ComputedBorderRadiusProp {
COMPUTED_BORDER_TOP_LEFT_RADIUS,
COMPUTED_BORDER_TOP_RIGHT_RADIUS,
COMPUTED_BORDER_BOTTOM_RIGHT_RADIUS,
COMPUTED_BORDER_BOTTOM_LEFT_RADIUS,
}

/** Phsysical edge lengths (in DIPs) for a border-radius. */
public data class ComputedBorderRadius(
val topLeft: Float,
Expand All @@ -26,14 +18,5 @@ public data class ComputedBorderRadius(
return topLeft > 0f || topRight > 0f || bottomLeft > 0f || bottomRight > 0f
}

public fun get(property: ComputedBorderRadiusProp): Float {
return when (property) {
ComputedBorderRadiusProp.COMPUTED_BORDER_TOP_LEFT_RADIUS -> topLeft
ComputedBorderRadiusProp.COMPUTED_BORDER_TOP_RIGHT_RADIUS -> topRight
ComputedBorderRadiusProp.COMPUTED_BORDER_BOTTOM_LEFT_RADIUS -> bottomLeft
ComputedBorderRadiusProp.COMPUTED_BORDER_BOTTOM_RIGHT_RADIUS -> bottomRight
}
}

public constructor() : this(0f, 0f, 0f, 0f)
}

This file was deleted.

0 comments on commit 5df5ed1

Please sign in to comment.