diff --git a/app/src/main/java/info/nightscout/androidaps/db/BgReading.java b/app/src/main/java/info/nightscout/androidaps/db/BgReading.java index a6b924d58f..091ee206b6 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/BgReading.java +++ b/app/src/main/java/info/nightscout/androidaps/db/BgReading.java @@ -28,7 +28,7 @@ import info.nightscout.androidaps.utils.resources.ResourceHelper; @DatabaseTable(tableName = DatabaseHelper.DATABASE_BGREADINGS) public class BgReading implements DataPointWithLabelInterface { - @Inject AAPSLogger aapsLogger; // TODO isn't it slow use dependency injection in such heave used object? + @Inject AAPSLogger aapsLogger; @Inject DefaultValueHelper defaultValueHelper; @Inject ProfileFunction profileFunction; @Inject ResourceHelper resourceHelper; diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSSMB/OpenAPSSMBPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSSMB/OpenAPSSMBPlugin.java index 7915a888c3..6b8034a038 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSSMB/OpenAPSSMBPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSSMB/OpenAPSSMBPlugin.java @@ -53,18 +53,6 @@ public class OpenAPSSMBPlugin extends PluginBase implements APSInterface, Constr private final TreatmentsPlugin treatmentsPlugin; private final IobCobCalculatorPlugin iobCobCalculatorPlugin; - private static OpenAPSSMBPlugin openAPSSMBPlugin; - - /** - * @deprecated Use dagger to get an instance - */ - @Deprecated - static public OpenAPSSMBPlugin getPlugin() { - if (openAPSSMBPlugin == null) - throw new IllegalStateException("Accessing OpenAPSSMBPlugin before first instantiation"); - return openAPSSMBPlugin; - } - // last values DetermineBasalAdapterSMBJS lastDetermineBasalAdapterSMBJS = null; long lastAPSRun = 0; @@ -92,7 +80,6 @@ public class OpenAPSSMBPlugin extends PluginBase implements APSInterface, Constr .description(R.string.description_smb), rxBusWrapper, aapsLogger ); - this.openAPSSMBPlugin = this; // TODO: only while transitioning to Dagger this.constraintChecker = constraintChecker; this.resourceHelper = resourceHelper;