Skip to content

Commit 5f39acc

Browse files
committed
refactor(android): remove of getClipPath method
1 parent 49b6760 commit 5f39acc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,9 @@ public object BackgroundStyleApplicator {
483483
view.invalidate()
484484
}
485485

486-
@JvmStatic
487-
private fun getClipPath(view: View): ClipPath? = view.getTag(R.id.clip_path) as? ClipPath
488-
489486
@JvmStatic
490487
public fun applyClipPathIfPresent(view: View, canvas: Canvas, drawContent: (() -> Unit?)?) {
491-
val clipPath = getClipPath(view)
488+
val clipPath = view.getTag(R.id.clip_path) as? ClipPath
492489
if (clipPath == null) {
493490
drawContent?.invoke()
494491
return

0 commit comments

Comments
 (0)