Remove unused @ContributesAndroidInjectors in Omnipod module and remove unused Context reference in AapsOmnipodManager
This commit is contained in:
parent
efc384f39c
commit
df7d28dc16
|
@ -3,7 +3,6 @@ package info.nightscout.androidaps.plugins.pump.omnipod.dagger
|
|||
import dagger.Module
|
||||
import dagger.Provides
|
||||
import dagger.android.ContributesAndroidInjector
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.OmnipodPumpPlugin
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.data.RLHistoryItemOmnipod
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.driver.manager.PodStateManager
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.manager.AapsOmnipodManager
|
||||
|
@ -38,9 +37,7 @@ abstract class OmnipodModule {
|
|||
|
||||
// Data
|
||||
@ContributesAndroidInjector abstract fun initPodRefreshAction(): InitPodRefreshAction
|
||||
@ContributesAndroidInjector abstract fun podStateManager(): PodStateManager
|
||||
@ContributesAndroidInjector abstract fun initPodTask(): InitPodTask
|
||||
@ContributesAndroidInjector abstract fun omnipodPumpPlugin(): OmnipodPumpPlugin
|
||||
@ContributesAndroidInjector abstract fun rlHistoryItemOmnipod(): RLHistoryItemOmnipod
|
||||
|
||||
companion object {
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
package info.nightscout.androidaps.plugins.pump.omnipod.manager;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
import org.joda.time.Duration;
|
||||
|
||||
|
@ -90,7 +88,6 @@ public class AapsOmnipodManager {
|
|||
private final ResourceHelper resourceHelper;
|
||||
private final HasAndroidInjector injector;
|
||||
private final ActivePluginProvider activePlugin;
|
||||
private final Context context;
|
||||
private final SP sp;
|
||||
private final OmnipodManager delegate;
|
||||
private final DatabaseHelperInterface databaseHelper;
|
||||
|
@ -114,7 +111,6 @@ public class AapsOmnipodManager {
|
|||
ResourceHelper resourceHelper,
|
||||
HasAndroidInjector injector,
|
||||
ActivePluginProvider activePlugin,
|
||||
Context context,
|
||||
DatabaseHelperInterface databaseHelper,
|
||||
OmnipodAlertUtil omnipodAlertUtil) {
|
||||
if (podStateManager == null) {
|
||||
|
@ -127,7 +123,6 @@ public class AapsOmnipodManager {
|
|||
this.resourceHelper = resourceHelper;
|
||||
this.injector = injector;
|
||||
this.activePlugin = activePlugin;
|
||||
this.context = context;
|
||||
this.databaseHelper = databaseHelper;
|
||||
this.sp = sp;
|
||||
this.omnipodAlertUtil = omnipodAlertUtil;
|
||||
|
|
Loading…
Reference in a new issue