From c48e147a68d850acbe77e93affc7f2b3da8f6e6c Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 29 Jan 2017 11:21:15 +0100 Subject: [PATCH] remove forgotten code --- .../receivers/KeepAliveReceiver.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveReceiver.java b/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveReceiver.java index d02aa0b797..f08e4879f4 100644 --- a/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveReceiver.java +++ b/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveReceiver.java @@ -78,30 +78,6 @@ public class KeepAliveReceiver extends BroadcastReceiver { } log.debug("KeepAlive received"); - final DanaRPlugin danaRPlugin = (DanaRPlugin) MainApp.getSpecificPlugin(DanaRPlugin.class); - if (danaRPlugin != null && Config.DANAR && danaRPlugin.isEnabled(PluginBase.PUMP)) { - if (danaRPlugin.getDanaRPump().lastConnection.getTime() + 30 * 60 * 1000L < new Date().getTime() && !danaRPlugin.isConnected() && !danaRPlugin.isConnecting()) { - Thread t = new Thread(new Runnable() { - @Override - public void run() { - danaRPlugin.doConnect("KeepAlive. Basal outdated: "); - } - }); - t.start(); - } - } - final DanaRKoreanPlugin danaRKoreanPlugin = (DanaRKoreanPlugin) MainApp.getSpecificPlugin(DanaRKoreanPlugin.class); - if (danaRKoreanPlugin != null && Config.DANAR && danaRKoreanPlugin.isEnabled(PluginBase.PUMP)) { - if (danaRKoreanPlugin.getDanaRPump().lastConnection.getTime() + 30 * 60 * 1000L < new Date().getTime() && !danaRKoreanPlugin.isConnected() && !danaRKoreanPlugin.isConnecting()) { - Thread t = new Thread(new Runnable() { - @Override - public void run() { - danaRKoreanPlugin.doConnect("KeepAlive. Basal outdated: "); - } - }); - t.start(); - } - } wl.release(); }