From 52851bf315a9487d7121b3c54675147e24b1f179 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 23 May 2022 15:22:24 +0200 Subject: [PATCH] remove unused injection --- .../general/overview/graphExtensions/CarbsDataPoint.kt | 3 +-- .../graphExtensions/EffectiveProfileSwitchDataPoint.kt | 3 +-- .../overview/graphExtensions/ExtendedBolusDataPoint.kt | 4 +--- .../overview/graphExtensions/GlucoseValueDataPoint.kt | 3 +-- .../graphExtensions/InMemoryGlucoseValueDataPoint.kt | 3 +-- .../overview/graphExtensions/TherapyEventDataPoint.kt | 6 ++---- 6 files changed, 7 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/CarbsDataPoint.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/CarbsDataPoint.kt index c457ef895e..6933771c62 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/CarbsDataPoint.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/CarbsDataPoint.kt @@ -4,9 +4,8 @@ import android.content.Context import info.nightscout.androidaps.core.R import info.nightscout.androidaps.database.entities.Carbs import info.nightscout.androidaps.interfaces.ResourceHelper -import javax.inject.Inject -class CarbsDataPoint @Inject constructor( +class CarbsDataPoint( val data: Carbs, private val rh: ResourceHelper ) : DataPointWithLabelInterface { diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/EffectiveProfileSwitchDataPoint.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/EffectiveProfileSwitchDataPoint.kt index bf3e9a5f1e..0a9da0d4ae 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/EffectiveProfileSwitchDataPoint.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/EffectiveProfileSwitchDataPoint.kt @@ -4,9 +4,8 @@ import android.content.Context import info.nightscout.androidaps.core.R import info.nightscout.androidaps.database.entities.EffectiveProfileSwitch import info.nightscout.androidaps.interfaces.ResourceHelper -import javax.inject.Inject -class EffectiveProfileSwitchDataPoint @Inject constructor( +class EffectiveProfileSwitchDataPoint( val data: EffectiveProfileSwitch, private val rh: ResourceHelper, private var yValue: Double diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/ExtendedBolusDataPoint.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/ExtendedBolusDataPoint.kt index 074140abb5..e6388038d8 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/ExtendedBolusDataPoint.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/ExtendedBolusDataPoint.kt @@ -1,14 +1,12 @@ package info.nightscout.androidaps.plugins.general.overview.graphExtensions import android.content.Context -import android.graphics.Color import info.nightscout.androidaps.core.R import info.nightscout.androidaps.database.entities.ExtendedBolus import info.nightscout.androidaps.extensions.toStringTotal import info.nightscout.androidaps.interfaces.ResourceHelper -import javax.inject.Inject -class ExtendedBolusDataPoint @Inject constructor( +class ExtendedBolusDataPoint( val data: ExtendedBolus, private val rh: ResourceHelper ) : DataPointWithLabelInterface { diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/GlucoseValueDataPoint.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/GlucoseValueDataPoint.kt index 2944236aa4..af527dec05 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/GlucoseValueDataPoint.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/GlucoseValueDataPoint.kt @@ -9,9 +9,8 @@ import info.nightscout.androidaps.interfaces.Profile import info.nightscout.androidaps.interfaces.ProfileFunction import info.nightscout.androidaps.interfaces.ResourceHelper import info.nightscout.androidaps.utils.DefaultValueHelper -import javax.inject.Inject -class GlucoseValueDataPoint @Inject constructor( +class GlucoseValueDataPoint( val data: GlucoseValue, private val defaultValueHelper: DefaultValueHelper, private val profileFunction: ProfileFunction, diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/InMemoryGlucoseValueDataPoint.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/InMemoryGlucoseValueDataPoint.kt index e73535cbe7..a5bf1c8e46 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/InMemoryGlucoseValueDataPoint.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/InMemoryGlucoseValueDataPoint.kt @@ -7,9 +7,8 @@ import info.nightscout.androidaps.data.InMemoryGlucoseValue import info.nightscout.androidaps.interfaces.GlucoseUnit import info.nightscout.androidaps.interfaces.ProfileFunction import info.nightscout.androidaps.interfaces.ResourceHelper -import javax.inject.Inject -class InMemoryGlucoseValueDataPoint @Inject constructor( +class InMemoryGlucoseValueDataPoint( val data: InMemoryGlucoseValue, private val profileFunction: ProfileFunction, private val rh: ResourceHelper diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/TherapyEventDataPoint.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/TherapyEventDataPoint.kt index 4692810ebb..d3592673b4 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/TherapyEventDataPoint.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/TherapyEventDataPoint.kt @@ -1,17 +1,15 @@ package info.nightscout.androidaps.plugins.general.overview.graphExtensions import android.content.Context -import android.graphics.Color import info.nightscout.androidaps.Constants import info.nightscout.androidaps.core.R import info.nightscout.androidaps.database.entities.TherapyEvent import info.nightscout.androidaps.interfaces.Profile import info.nightscout.androidaps.interfaces.ProfileFunction -import info.nightscout.androidaps.utils.Translator import info.nightscout.androidaps.interfaces.ResourceHelper -import javax.inject.Inject +import info.nightscout.androidaps.utils.Translator -class TherapyEventDataPoint @Inject constructor( +class TherapyEventDataPoint( val data: TherapyEvent, private val rh: ResourceHelper, private val profileFunction: ProfileFunction,