From 987fee77ca34d2f5189f04b4ad8385ee642d3507 Mon Sep 17 00:00:00 2001 From: David Calhoun Date: Fri, 15 Nov 2024 08:19:03 -0500 Subject: [PATCH] refactor: Remove unused modifier parameter --- .../android/ui/prefs/ExperimentalFeaturesActivity.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/prefs/ExperimentalFeaturesActivity.kt b/WordPress/src/main/java/org/wordpress/android/ui/prefs/ExperimentalFeaturesActivity.kt index 6a485dacf67f..20ffb4582079 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/prefs/ExperimentalFeaturesActivity.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/prefs/ExperimentalFeaturesActivity.kt @@ -97,7 +97,6 @@ class ExperimentalFeaturesActivity : AppCompatActivity() { @Composable fun ExperimentalFeaturesScreen( features: Map, - modifier: Modifier = Modifier, onFeatureToggled: (key: String, label: String, enabled: Boolean) -> Unit, onNavigateBack: () -> Unit ) { @@ -118,7 +117,7 @@ fun ExperimentalFeaturesScreen( ) }, ) { innerPadding -> - Box(modifier = modifier.then(Modifier.padding(innerPadding))) { + Box(modifier = Modifier.padding(innerPadding)) { Column { features.forEach { (key, feature) -> FeatureToggle( @@ -126,7 +125,6 @@ fun ExperimentalFeaturesScreen( label = feature.label, enabled = feature.enabled, onChange = onFeatureToggled, - modifier = modifier ) } } @@ -136,7 +134,6 @@ fun ExperimentalFeaturesScreen( @Composable fun FeatureToggle( - modifier: Modifier = Modifier, key: String, label: String, enabled: Boolean, @@ -144,7 +141,7 @@ fun FeatureToggle( ) { Row( verticalAlignment = Alignment.CenterVertically, - modifier = modifier + modifier = Modifier .clickable { onChange(key, label, !enabled) } .padding(horizontal = Margin.ExtraLarge.value, vertical = Margin.MediumLarge.value) ) {