lint & deprecation
This commit is contained in:
parent
7060c51681
commit
666ce54b1f
3 changed files with 1 additions and 21 deletions
|
@ -90,8 +90,6 @@ import io.reactivex.schedulers.Schedulers;
|
|||
public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPumpPluginInterface, RileyLinkPumpDevice {
|
||||
|
||||
// TODO Dagger (maybe done)
|
||||
private static OmnipodPumpPlugin plugin = null;
|
||||
private RileyLinkServiceData rileyLinkServiceData;
|
||||
private ServiceTaskExecutor serviceTaskExecutor;
|
||||
private RileyLinkOmnipodService rileyLinkOmnipodService;
|
||||
private OmnipodUtil omnipodUtil;
|
||||
|
@ -150,11 +148,9 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump
|
|||
PumpType.Insulet_Omnipod,
|
||||
injector, resourceHelper, aapsLogger, commandQueue, rxBus, activePlugin, sp, context, fabricPrivacy, dateUtil
|
||||
);
|
||||
this.rileyLinkServiceData = rileyLinkServiceData;
|
||||
this.serviceTaskExecutor = serviceTaskExecutor;
|
||||
|
||||
displayConnectionMessages = false;
|
||||
OmnipodPumpPlugin.plugin = this;
|
||||
this.omnipodUtil = omnipodUtil;
|
||||
this.omnipodPumpStatus = omnipodPumpStatus;
|
||||
|
||||
|
@ -249,14 +245,6 @@ public class OmnipodPumpPlugin extends PumpPluginAbstract implements OmnipodPump
|
|||
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static OmnipodPumpPlugin getPlugin() {
|
||||
if (plugin == null)
|
||||
throw new IllegalStateException("Plugin not injected jet");
|
||||
return plugin;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
super.onStart();
|
||||
|
|
|
@ -10,6 +10,7 @@ public interface OmnipodPumpPluginInterface extends PumpInterface {
|
|||
|
||||
void setDriverState(OmnipodDriverState state);
|
||||
|
||||
@Deprecated
|
||||
RxBusWrapper getRxBus();
|
||||
|
||||
}
|
||||
|
|
|
@ -50,7 +50,6 @@ public class OmnipodDashPumpPlugin extends OmnipodPumpPlugin implements OmnipodP
|
|||
// TODO Dagger
|
||||
//private static final Logger LOG = LoggerFactory.getLogger(L.PUMP);
|
||||
|
||||
protected static OmnipodDashPumpPlugin plugin = null;
|
||||
//private RileyLinkOmnipodService omnipodService;
|
||||
//private OmnipodPumpStatus pumpStatusLocal = null;
|
||||
|
||||
|
@ -136,14 +135,6 @@ public class OmnipodDashPumpPlugin extends OmnipodPumpPlugin implements OmnipodP
|
|||
// };
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static OmnipodDashPumpPlugin getPlugin() {
|
||||
if (plugin == null)
|
||||
throw new IllegalStateException("Plugin not injected jet");
|
||||
return plugin;
|
||||
}
|
||||
|
||||
|
||||
private String getLogPrefix() {
|
||||
return "OmnipodPlugin::";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue