Skip to content

Commit

Permalink
style: Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Dec 4, 2024
1 parent 211e1f9 commit 343242a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
1 change: 0 additions & 1 deletion Core2/Onboarding/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ android {
}

dependencies {

implementation(core2.androidx.core.ktx)
implementation(core2.androidx.material3.android)
implementation(core2.androidx.runtime.android)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ data class OnboardingPage(
val text: @Composable () -> Unit,
)


@Preview
@Preview(device = "spec:parent=pixel_5,orientation=landscape")
@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,29 +61,6 @@ fun HighlightedText(
horizontalPadding: Float = HORIZONTAL_PADDING,
angleDegrees: Double = ROTATION_ANGLE_DEGREE,
isHighlighted: () -> Boolean,
) {
HighlightedTextCore(
templateRes,
argumentRes,
style,
modifier,
verticalPadding,
horizontalPadding,
angleDegrees,
isHighlighted,
)
}

@Composable
private fun HighlightedTextCore(
templateRes: Int,
argumentRes: Int,
style: TextStyle,
modifier: Modifier,
verticalPadding: Float,
horizontalPadding: Float,
angleDegrees: Double,
isHighlighted: () -> Boolean,
) {
val template = stringResource(templateRes)
val argument = stringResource(argumentRes)
Expand Down

0 comments on commit 343242a

Please sign in to comment.