Skip to content

Commit 16f1f39

Browse files
committed
clean up not needed logic
1 parent 7af9bd3 commit 16f1f39

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ private static void buildSpannableFromFragment(
142142
} else if (end >= start) {
143143
if (textAttributes.mIsAccessibilityLink) {
144144
ops.add(new SetSpanOperation(start, end, new ReactClickableSpan(reactTag)));
145-
// add here the span
146145
}
147146
if (textAttributes.mIsColorSet) {
148147
ops.add(
@@ -152,19 +151,12 @@ private static void buildSpannableFromFragment(
152151
if (textAttributes.mIsAccessibilityUnit) {
153152
if (Build.VERSION.SDK_INT > 21) {
154153
ops.add(new SetSpanOperation(start, end, new ReactTtsSpan.Builder("verbatim").build()));
155-
/*
156-
ops.add(
157-
new SetSpanOperation(
158-
start, end, new ReactTtsSpan.Builder(ReactTtsSpan.TYPE_VERBATIM).build()));
159-
*/
160154
}
161155
}
162156
if (textAttributes.mIsBackgroundColorSet) {
163-
/*
164157
ops.add(
165158
new SetSpanOperation(
166159
start, end, new ReactBackgroundColorSpan(textAttributes.mBackgroundColor)));
167-
*/
168160
}
169161
if (!Float.isNaN(textAttributes.getLetterSpacing())) {
170162
ops.add(
@@ -587,7 +579,6 @@ public static WritableArray measureLines(
587579
// TODO T31905686: This class should be private
588580
public static class SetSpanOperation {
589581
protected int start, end;
590-
public ReactSpan what;
591582

592583
public SetSpanOperation(int start, int end, ReactSpan what) {
593584
this.start = start;

0 commit comments

Comments
 (0)