Skip to content

Commit 5b6f7f8

Browse files
keta1mikepenz
authored andcommitted
- remove deprecated code and unnecessary suppressions
1 parent 01f0696 commit 5b6f7f8

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

multiplatform-markdown-renderer-code/src/commonMain/kotlin/com/mikepenz/markdown/compose/elements/MarkdownHighlightedCode.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ fun MarkdownHighlightedCode(
9999
shape = RoundedCornerShape(codeBackgroundCornerSize),
100100
modifier = Modifier.fillMaxWidth().padding(vertical = 8.dp)
101101
) {
102-
@Suppress("DEPRECATION")
103102
MarkdownBasicText(
104103
text = codeHighlights,
105104
style = style,

multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/compose/elements/MarkdownTable.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ fun MarkdownTableBasicText(
162162
overflow: TextOverflow = TextOverflow.Ellipsis,
163163
annotatorSettings: AnnotatorSettings = annotatorSettings(),
164164
) {
165-
@Suppress("DEPRECATION")
166165
MarkdownBasicText(
167166
text = content.buildMarkdownAnnotatedString(
168167
textNode = cell,

multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/compose/elements/MarkdownText.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ fun MarkdownText(
138138
}
139139
}
140140
.let {
141-
// for backwards compatibility still check the `animate` property
142-
@Suppress("DEPRECATION")
143-
if (placeholderState.animate) animations.animateTextSize(it) else it
141+
animations.animateTextSize(it)
144142
},
145143
style = style,
146144
inlineContent = remember(inlineContent.inlineContent, placeholderState, transformer, imageState) {

multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/model/ImageTransformer.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ interface ImageTransformer {
5555
data class PlaceholderConfig(
5656
val size: Size,
5757
val verticalAlign: PlaceholderVerticalAlign = PlaceholderVerticalAlign.Bottom,
58-
@Deprecated("This parameter is not used anymore and will be removed in the future.")
59-
val animate: Boolean = true,
6058
)
6159

6260
@Immutable
@@ -68,4 +66,4 @@ data class ImageData(
6866
val contentScale: ContentScale = ContentScale.Fit,
6967
val alpha: Float = DefaultAlpha,
7068
val colorFilter: ColorFilter? = null,
71-
)
69+
)

0 commit comments

Comments
 (0)