From fd53725163e70a1d4cb500b5d4d52a35f4cab7b9 Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Sun, 23 Aug 2020 11:46:26 +0200 Subject: [PATCH] Remove redundant interface --- .../plugins/pump/omnipod/OmnipodPumpPlugin.java | 5 ++--- .../pump/omnipod/defs/OmnipodPumpPluginInterface.java | 9 --------- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/defs/OmnipodPumpPluginInterface.java diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java index f591962e93..344e57f2d8 100644 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java +++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/OmnipodPumpPlugin.java @@ -66,7 +66,6 @@ import info.nightscout.androidaps.plugins.pump.common.utils.DateTimeUtil; import info.nightscout.androidaps.plugins.pump.omnipod.comm.message.response.podinfo.PodInfoRecentPulseLog; import info.nightscout.androidaps.plugins.pump.omnipod.defs.OmnipodCommandType; import info.nightscout.androidaps.plugins.pump.omnipod.defs.OmnipodCustomActionType; -import info.nightscout.androidaps.plugins.pump.omnipod.defs.OmnipodPumpPluginInterface; import info.nightscout.androidaps.plugins.pump.omnipod.defs.OmnipodStatusRequest; import info.nightscout.androidaps.plugins.pump.omnipod.defs.state.PodStateManager; import info.nightscout.androidaps.plugins.pump.omnipod.driver.comm.AapsOmnipodManager; @@ -93,7 +92,7 @@ import io.reactivex.schedulers.Schedulers; * @author Andy Rozman (andy.rozman@gmail.com) */ @Singleton -public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, OmnipodPumpPluginInterface, RileyLinkPumpDevice { +public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, RileyLinkPumpDevice { private final PodStateManager podStateManager; private final RileyLinkServiceData rileyLinkServiceData; private final ServiceTaskExecutor serviceTaskExecutor; @@ -842,7 +841,7 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface, aapsLogger.error(LTag.PUMP, "getPodPumpStatus() NOT IMPLEMENTED"); } - @Override public void addPodStatusRequest(OmnipodStatusRequest pumpStatusRequest) { + public void addPodStatusRequest(OmnipodStatusRequest pumpStatusRequest) { if (pumpStatusRequest == OmnipodStatusRequest.ResetState) { resetStatusState(); } else { diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/defs/OmnipodPumpPluginInterface.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/defs/OmnipodPumpPluginInterface.java deleted file mode 100644 index 50cfec2d88..0000000000 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/defs/OmnipodPumpPluginInterface.java +++ /dev/null @@ -1,9 +0,0 @@ -package info.nightscout.androidaps.plugins.pump.omnipod.defs; - -import info.nightscout.androidaps.interfaces.PumpInterface; - -public interface OmnipodPumpPluginInterface extends PumpInterface { - - void addPodStatusRequest(OmnipodStatusRequest pumpStatusRequest); - -}