remove unused injection

This commit is contained in:
Milos Kozak 2022-05-23 15:22:24 +02:00
parent 7bcfc29b36
commit 52851bf315
6 changed files with 7 additions and 15 deletions

View file

@ -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 {

View file

@ -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

View file

@ -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 {

View file

@ -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,

View file

@ -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

View file

@ -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,