remove unused injection
This commit is contained in:
parent
7bcfc29b36
commit
52851bf315
6 changed files with 7 additions and 15 deletions
|
@ -4,9 +4,8 @@ import android.content.Context
|
||||||
import info.nightscout.androidaps.core.R
|
import info.nightscout.androidaps.core.R
|
||||||
import info.nightscout.androidaps.database.entities.Carbs
|
import info.nightscout.androidaps.database.entities.Carbs
|
||||||
import info.nightscout.androidaps.interfaces.ResourceHelper
|
import info.nightscout.androidaps.interfaces.ResourceHelper
|
||||||
import javax.inject.Inject
|
|
||||||
|
|
||||||
class CarbsDataPoint @Inject constructor(
|
class CarbsDataPoint(
|
||||||
val data: Carbs,
|
val data: Carbs,
|
||||||
private val rh: ResourceHelper
|
private val rh: ResourceHelper
|
||||||
) : DataPointWithLabelInterface {
|
) : DataPointWithLabelInterface {
|
||||||
|
|
|
@ -4,9 +4,8 @@ import android.content.Context
|
||||||
import info.nightscout.androidaps.core.R
|
import info.nightscout.androidaps.core.R
|
||||||
import info.nightscout.androidaps.database.entities.EffectiveProfileSwitch
|
import info.nightscout.androidaps.database.entities.EffectiveProfileSwitch
|
||||||
import info.nightscout.androidaps.interfaces.ResourceHelper
|
import info.nightscout.androidaps.interfaces.ResourceHelper
|
||||||
import javax.inject.Inject
|
|
||||||
|
|
||||||
class EffectiveProfileSwitchDataPoint @Inject constructor(
|
class EffectiveProfileSwitchDataPoint(
|
||||||
val data: EffectiveProfileSwitch,
|
val data: EffectiveProfileSwitch,
|
||||||
private val rh: ResourceHelper,
|
private val rh: ResourceHelper,
|
||||||
private var yValue: Double
|
private var yValue: Double
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
package info.nightscout.androidaps.plugins.general.overview.graphExtensions
|
package info.nightscout.androidaps.plugins.general.overview.graphExtensions
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.graphics.Color
|
|
||||||
import info.nightscout.androidaps.core.R
|
import info.nightscout.androidaps.core.R
|
||||||
import info.nightscout.androidaps.database.entities.ExtendedBolus
|
import info.nightscout.androidaps.database.entities.ExtendedBolus
|
||||||
import info.nightscout.androidaps.extensions.toStringTotal
|
import info.nightscout.androidaps.extensions.toStringTotal
|
||||||
import info.nightscout.androidaps.interfaces.ResourceHelper
|
import info.nightscout.androidaps.interfaces.ResourceHelper
|
||||||
import javax.inject.Inject
|
|
||||||
|
|
||||||
class ExtendedBolusDataPoint @Inject constructor(
|
class ExtendedBolusDataPoint(
|
||||||
val data: ExtendedBolus,
|
val data: ExtendedBolus,
|
||||||
private val rh: ResourceHelper
|
private val rh: ResourceHelper
|
||||||
) : DataPointWithLabelInterface {
|
) : DataPointWithLabelInterface {
|
||||||
|
|
|
@ -9,9 +9,8 @@ import info.nightscout.androidaps.interfaces.Profile
|
||||||
import info.nightscout.androidaps.interfaces.ProfileFunction
|
import info.nightscout.androidaps.interfaces.ProfileFunction
|
||||||
import info.nightscout.androidaps.interfaces.ResourceHelper
|
import info.nightscout.androidaps.interfaces.ResourceHelper
|
||||||
import info.nightscout.androidaps.utils.DefaultValueHelper
|
import info.nightscout.androidaps.utils.DefaultValueHelper
|
||||||
import javax.inject.Inject
|
|
||||||
|
|
||||||
class GlucoseValueDataPoint @Inject constructor(
|
class GlucoseValueDataPoint(
|
||||||
val data: GlucoseValue,
|
val data: GlucoseValue,
|
||||||
private val defaultValueHelper: DefaultValueHelper,
|
private val defaultValueHelper: DefaultValueHelper,
|
||||||
private val profileFunction: ProfileFunction,
|
private val profileFunction: ProfileFunction,
|
||||||
|
|
|
@ -7,9 +7,8 @@ import info.nightscout.androidaps.data.InMemoryGlucoseValue
|
||||||
import info.nightscout.androidaps.interfaces.GlucoseUnit
|
import info.nightscout.androidaps.interfaces.GlucoseUnit
|
||||||
import info.nightscout.androidaps.interfaces.ProfileFunction
|
import info.nightscout.androidaps.interfaces.ProfileFunction
|
||||||
import info.nightscout.androidaps.interfaces.ResourceHelper
|
import info.nightscout.androidaps.interfaces.ResourceHelper
|
||||||
import javax.inject.Inject
|
|
||||||
|
|
||||||
class InMemoryGlucoseValueDataPoint @Inject constructor(
|
class InMemoryGlucoseValueDataPoint(
|
||||||
val data: InMemoryGlucoseValue,
|
val data: InMemoryGlucoseValue,
|
||||||
private val profileFunction: ProfileFunction,
|
private val profileFunction: ProfileFunction,
|
||||||
private val rh: ResourceHelper
|
private val rh: ResourceHelper
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
package info.nightscout.androidaps.plugins.general.overview.graphExtensions
|
package info.nightscout.androidaps.plugins.general.overview.graphExtensions
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.graphics.Color
|
|
||||||
import info.nightscout.androidaps.Constants
|
import info.nightscout.androidaps.Constants
|
||||||
import info.nightscout.androidaps.core.R
|
import info.nightscout.androidaps.core.R
|
||||||
import info.nightscout.androidaps.database.entities.TherapyEvent
|
import info.nightscout.androidaps.database.entities.TherapyEvent
|
||||||
import info.nightscout.androidaps.interfaces.Profile
|
import info.nightscout.androidaps.interfaces.Profile
|
||||||
import info.nightscout.androidaps.interfaces.ProfileFunction
|
import info.nightscout.androidaps.interfaces.ProfileFunction
|
||||||
import info.nightscout.androidaps.utils.Translator
|
|
||||||
import info.nightscout.androidaps.interfaces.ResourceHelper
|
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,
|
val data: TherapyEvent,
|
||||||
private val rh: ResourceHelper,
|
private val rh: ResourceHelper,
|
||||||
private val profileFunction: ProfileFunction,
|
private val profileFunction: ProfileFunction,
|
||||||
|
|
Loading…
Reference in a new issue