From 1d4a686837b41de0dd59b59139e15d61a41f4d97 Mon Sep 17 00:00:00 2001 From: Leonardo Colman Lopes Date: Thu, 16 Jan 2025 10:25:36 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20Detekt=20Complaints?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Leonardo Colman Lopes --- .../br/com/colman/petals/statistics/graph/AllTimeGraph.kt | 3 --- .../statistics/graph/data/DistributionPerDaySinceFirstUse.kt | 1 - 2 files changed, 4 deletions(-) diff --git a/app/src/main/kotlin/br/com/colman/petals/statistics/graph/AllTimeGraph.kt b/app/src/main/kotlin/br/com/colman/petals/statistics/graph/AllTimeGraph.kt index e2695919..71a42bc9 100644 --- a/app/src/main/kotlin/br/com/colman/petals/statistics/graph/AllTimeGraph.kt +++ b/app/src/main/kotlin/br/com/colman/petals/statistics/graph/AllTimeGraph.kt @@ -7,8 +7,6 @@ import br.com.colman.petals.statistics.graph.component.LineChart import br.com.colman.petals.statistics.graph.data.createAllTimeDistributionWithMovingAverage import br.com.colman.petals.statistics.graph.formatter.DaysSinceFirstUseFormatter import br.com.colman.petals.use.repository.Use -import com.github.mikephil.charting.components.LimitLine -import java.time.YearMonth @Composable fun AllTimeGraph(uses: List, dateFormat: String) { @@ -21,6 +19,5 @@ fun AllTimeGraph(uses: List, dateFormat: String) { labelCount = 5 granularity = 1f valueFormatter = DaysSinceFirstUseFormatter(uses, dateFormat).formatDate - } } diff --git a/app/src/main/kotlin/br/com/colman/petals/statistics/graph/data/DistributionPerDaySinceFirstUse.kt b/app/src/main/kotlin/br/com/colman/petals/statistics/graph/data/DistributionPerDaySinceFirstUse.kt index 71a40acf..43db89c3 100644 --- a/app/src/main/kotlin/br/com/colman/petals/statistics/graph/data/DistributionPerDaySinceFirstUse.kt +++ b/app/src/main/kotlin/br/com/colman/petals/statistics/graph/data/DistributionPerDaySinceFirstUse.kt @@ -51,7 +51,6 @@ fun createAllTimeAverageDataSet(entryList: List, label: String): LineData color = Color.Green.toArgb() mode = LineDataSet.Mode.CUBIC_BEZIER enableDashedLine(10f, 5f, 0f) - } }