cleanup
This commit is contained in:
parent
5c8c263c17
commit
d6f4242548
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue