From bf4c887e1dad3e66c4bf5b93ff1447bfcd75a850 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Wed, 5 Feb 2025 06:28:29 -0800 Subject: [PATCH] Cleanup `public` modifiers inside LayoutDirectionUtil (#49172) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49172 Those public keywords are unnecessary, let's remove them. Changelog: [Internal] [Changed] - Reviewed By: NickGerleman Differential Revision: D69120493 fbshipit-source-id: dbc46f340f33c54c1986813eb6a51f5cfec4790d --- .../java/com/facebook/react/uimanager/LayoutDirectionUtil.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutDirectionUtil.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutDirectionUtil.kt index 5d00a9ffcfc..f992454f15e 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutDirectionUtil.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutDirectionUtil.kt @@ -12,7 +12,7 @@ import com.facebook.yoga.YogaDirection internal object LayoutDirectionUtil { @JvmStatic - public fun toAndroidFromYoga(direction: YogaDirection): Int = + fun toAndroidFromYoga(direction: YogaDirection): Int = when (direction) { YogaDirection.LTR -> View.LAYOUT_DIRECTION_LTR YogaDirection.RTL -> View.LAYOUT_DIRECTION_RTL @@ -20,7 +20,7 @@ internal object LayoutDirectionUtil { } @JvmStatic - public fun toYogaFromAndroid(direction: Int): YogaDirection = + fun toYogaFromAndroid(direction: Int): YogaDirection = when (direction) { View.LAYOUT_DIRECTION_LTR -> YogaDirection.LTR View.LAYOUT_DIRECTION_RTL -> YogaDirection.RTL