diff --git a/src/Microsoft.Maui.Graphics/Android/Text/SpannableExtensions.cs b/src/Microsoft.Maui.Graphics/Android/Text/SpannableExtensions.cs deleted file mode 100644 index 5ee39f9..0000000 --- a/src/Microsoft.Maui.Graphics/Android/Text/SpannableExtensions.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System.Collections.Generic; -using Microsoft.Maui.Graphics.Text; -using System.IO; -using Android.Text; - -namespace Microsoft.Maui.Graphics.Platform -{ - internal static class SpannableExtensions - { - public static AttributedText AsAttributedText(this ISpannable target) - { - if (target != null) - { - using (var textWriter = new StringWriter()) - { - var runs = CreateRuns(target, textWriter); - return new AttributedText(textWriter.ToString(), runs); - } - } - - return null; - } - - private static List CreateRuns( - ISpannable target, - TextWriter writer) - { - var runs = new List(); - - var spans = target.GetSpans(0, target.Length(), null); - if (spans != null) - { - foreach (var span in spans) - { - System.Console.WriteLine(span); - } - } - - writer.Write(target.ToString()); - return runs; - } - } -}