Skip to content

Commit 69298ea

Browse files
MatkovIvanApoloApps
authored andcommitted
Fix skiko text helpers visibility (JetBrains#3150)
[CMP-9403](https://youtrack.jetbrains.com/issue/CMP-9403) Remove from public accidentally exposed convert functions in `ParagraphBuilder.skiko.kt` ## Release Notes N/A
1 parent c0984f8 commit 69298ea

1 file changed

Lines changed: 2 additions & 17 deletions

File tree

compose/ui/ui-text/src/skikoMain/kotlin/androidx/compose/ui/text/platform/ParagraphBuilder.skiko.kt

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -755,26 +755,13 @@ private fun SpanStyle.copyWithDefaultFontSize(drawStyle: DrawStyle? = null): Spa
755755
)
756756
}
757757

758-
// TODO: Remove from public
759-
@InternalTextApi
760-
fun FontStyle.toSkFontStyle(): SkFontStyle {
758+
internal fun FontStyle.toSkFontStyle(): SkFontStyle {
761759
return when (this) {
762760
FontStyle.Italic -> SkFontStyle.ITALIC
763761
else -> SkFontStyle.NORMAL
764762
}
765763
}
766764

767-
// TODO: Remove from public
768-
@Suppress("unused")
769-
@Deprecated(
770-
message = "This method was not intended to be public",
771-
level = DeprecationLevel.HIDDEN
772-
)
773-
@InternalTextApi
774-
fun TextDecoration.toSkDecorationStyle(color: Color): SkDecorationStyle {
775-
return toSkDecorationStyle(color, null)
776-
}
777-
778765
private fun TextDecoration.toSkDecorationStyle(
779766
color: Color,
780767
textDecorationLineStyle: TextDecorationLineStyle?
@@ -808,9 +795,7 @@ private fun TextDecorationLineStyle.toSkDecorationLineStyle(): SkDecorationLineS
808795
}
809796
}
810797

811-
// TODO: Remove from public
812-
@InternalTextApi
813-
fun PlaceholderVerticalAlign.toSkPlaceholderAlignment(): PlaceholderAlignment {
798+
private fun PlaceholderVerticalAlign.toSkPlaceholderAlignment(): PlaceholderAlignment {
814799
return when (this) {
815800
PlaceholderVerticalAlign.AboveBaseline -> PlaceholderAlignment.ABOVE_BASELINE
816801
PlaceholderVerticalAlign.TextTop -> PlaceholderAlignment.TOP

0 commit comments

Comments
 (0)