Revert "Add CTS test for underlines not affecting width"

This reverts commit 6c11e6dd7b660544650fb8fbccb924b75b227a74.

Bug: 62234081
Change-Id: Ib5404a7fcee0d18015dfa7dd8cfe1a0d145cc94d
diff --git a/tests/tests/text/src/android/text/style/cts/UnderlineSpanTest.java b/tests/tests/text/src/android/text/style/cts/UnderlineSpanTest.java
index c93dd39..0661833 100644
--- a/tests/tests/text/src/android/text/style/cts/UnderlineSpanTest.java
+++ b/tests/tests/text/src/android/text/style/cts/UnderlineSpanTest.java
@@ -16,16 +16,12 @@
 
 package android.text.style.cts;
 
-import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
 import android.os.Parcel;
 import android.support.test.filters.SmallTest;
 import android.support.test.runner.AndroidJUnit4;
-import android.text.SpannableString;
-import android.text.Spanned;
-import android.text.StaticLayout;
 import android.text.TextPaint;
 import android.text.style.UnderlineSpan;
 
@@ -89,26 +85,4 @@
             p.recycle();
         }
     }
-
-    @Test
-    public void testDoesntAffectWidth() {
-        // Roboto kerns between "P" and "."
-        final SpannableString text = new SpannableString("P. T");
-
-        final TextPaint tp = new TextPaint();
-        tp.setTextSize(100.0f); // Large enough so that the difference in kerning is visible.
-        final int largeWidth = 10000; // Enough width so the whole text fits in one line.
-        final StaticLayout origLayout = StaticLayout.Builder.obtain(
-                text, 0, text.length(), tp, largeWidth).build();
-        final float origLineWidth = origLayout.getLineWidth(0);
-
-        // Underline just the "P".
-        text.setSpan(new UnderlineSpan(), 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
-
-        final StaticLayout underlinedLayout = StaticLayout.Builder.obtain(
-                text, 0, text.length(), tp, largeWidth).build();
-        final float underlinedLineWidth = underlinedLayout.getLineWidth(0);
-
-        assertEquals(origLineWidth, underlinedLineWidth, 0.0f);
-    }
 }