This commit is contained in:
Milos Kozak 2020-01-09 16:56:27 +01:00
parent 5c8c263c17
commit d6f4242548
2 changed files with 1 additions and 14 deletions

View file

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

View file

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