Skip to content

Commit 41173cb

Browse files
committed
removing not relevant code (to be tested)
1 parent 3b16542 commit 41173cb

File tree

4 files changed

+2
-17
lines changed

4 files changed

+2
-17
lines changed

ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerDelegate.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
package com.facebook.react.uimanager;
99

10-
import android.util.Log;
1110
import android.view.View;
1211
import androidx.annotation.Nullable;
1312
import com.facebook.react.bridge.ColorPropConverter;
@@ -31,8 +30,6 @@ public BaseViewManagerDelegate(U viewManager) {
3130

3231
@Override
3332
public void setProperty(T view, String propName, @Nullable Object value) {
34-
Log.w("TESTING::BaseViewManagerDelegate", "propName: " + (propName));
35-
Log.w("TESTING::BaseViewManagerDelegate", "value: " + (value));
3633
switch (propName) {
3734
case ViewProps.ACCESSIBILITY_ACTIONS:
3835
mViewManager.setAccessibilityActions(view, (ReadableArray) value);

ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import android.text.StaticLayout;
2020
import android.text.TextPaint;
2121
import android.util.LayoutDirection;
22-
import android.util.Log;
2322
import android.util.LruCache;
2423
import android.view.View;
2524
import androidx.annotation.NonNull;

ReactAndroid/src/main/java/com/facebook/react/views/view/ReactMapBufferPropSetter.kt

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
package com.facebook.react.views.view
9-
import android.util.Log;
9+
1010
import android.graphics.Color
1111
import android.graphics.Rect
1212
import androidx.core.view.ViewCompat
@@ -64,7 +64,6 @@ object ReactMapBufferPropSetter {
6464
private const val VP_POINTER_OVER_CAPTURE = 44
6565
private const val VP_BORDER_CURVES = 45 // iOS only
6666
private const val VP_FG_COLOR = 46 // iOS only?
67-
private const val VP_ACCESSIBILITY_UNIT = 47
6867

6968
// Yoga values
7069
private const val YG_BORDER_WIDTH = 100
@@ -108,7 +107,6 @@ object ReactMapBufferPropSetter {
108107
private const val UNDEF_COLOR = Int.MAX_VALUE
109108

110109
fun setProps(view: ReactViewGroup, viewManager: ReactViewManager, props: MapBuffer) {
111-
Log.w("TESTING::ReactMapBufferPropSetter", "props: " + ( props ));
112110
for (entry in props) {
113111
when (entry.key) {
114112
VP_ACCESSIBILITY_ACTIONS -> {
@@ -132,9 +130,6 @@ object ReactMapBufferPropSetter {
132130
VP_ACCESSIBILITY_STATE -> {
133131
viewManager.accessibilityState(view, entry.mapBufferValue)
134132
}
135-
VP_ACCESSIBILITY_UNIT -> {
136-
viewManager.setAccessibilityUnit(view, entry.stringValue.takeIf { it.isNotEmpty() })
137-
}
138133
VP_ACCESSIBILITY_VALUE -> {
139134
viewManager.accessibilityValue(view, entry.stringValue)
140135
}
@@ -283,12 +278,6 @@ object ReactMapBufferPropSetter {
283278
ViewCompat.setAccessibilityLiveRegion(this, mode)
284279
}
285280

286-
private fun ReactViewManager.accessibilityUnit(view: ReactViewGroup, value: String) {
287-
Log.w("TESTING::ReactMapBufferPropSetter", "accessibilityUnit");
288-
Log.w("TESTING::ReactMapBufferPropSetter", "value: " + ( value ));
289-
setAccessibilityUnit(view,"random string")
290-
}
291-
292281
private fun ReactViewManager.accessibilityState(view: ReactViewGroup, value: MapBuffer) {
293282
val accessibilityState = JavaOnlyMap()
294283
accessibilityState.putBoolean("selected", value.getBoolean(ACCESSIBILITY_STATE_SELECTED))

ReactCommon/react/renderer/components/view/AccessibilityProps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AccessibilityProps {
3939

4040
bool accessible{false};
4141
AccessibilityState accessibilityState;
42-
std::string accessibilityUnit{"1"};
42+
std::string accessibilityUnit{""};
4343
std::string accessibilityLabel{""};
4444
AccessibilityLabelledBy accessibilityLabelledBy{};
4545
AccessibilityLiveRegion accessibilityLiveRegion{

0 commit comments

Comments
 (0)