Skip to content

Commit e2f615c

Browse files
Fix redundant composable annotation (#7367)
1 parent 01fa3dc commit e2f615c

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

common/lint-baseline.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,4 @@
177177
column="17"/>
178178
</issue>
179179

180-
<issue
181-
id="ComposeRedundantComposable"
182-
message="This declaration is annotated with @Composable but doesn&apos;t call any other @Composable functions or read any @Composable properties (like a CompositionLocal&apos;s current), so it doesn&apos;t use the composition and the @Composable annotation can be removed.&#xA;&#xA;See https://slackhq.github.io/compose-lints/rules/#remove-unnecessary-composable-annotations for more information."
183-
errorLine1=" @Composable"
184-
errorLine2=" ~~~~~~~~~~~">
185-
<location
186-
file="src/main/kotlin/io/homeassistant/companion/android/common/compose/theme/HATextStyle.kt"
187-
line="80"
188-
column="9"/>
189-
</issue>
190-
191180
</issues>

common/src/main/kotlin/io/homeassistant/companion/android/common/compose/theme/HATextStyle.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ object HATextStyle {
7777
)
7878

7979
val Button
80-
@Composable
8180
get() = TextStyle(
8281
fontStyle = FontStyle.Normal,
8382
fontSize = HAFontSize.M,

0 commit comments

Comments
 (0)