From fdbfa16e40f9f16cfca0bc1c8255b3beb5e7fc4c Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 18 Jul 2016 13:18:45 +0200 Subject: [PATCH] remove TODOs and comments --- .../nightscout/androidaps/plugins/DanaR/DanaRFragment.java | 3 --- .../androidaps/plugins/DanaR/Dialogs/ProfileViewDialog.java | 2 -- .../androidaps/plugins/DanaR/Services/ExecutionService.java | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaRFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaRFragment.java index b1659a40a6..44a77ba3f5 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaRFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/DanaRFragment.java @@ -195,13 +195,11 @@ public class DanaRFragment extends Fragment implements PluginBase, PumpInterface ServiceConnection mConnection = new ServiceConnection() { public void onServiceDisconnected(ComponentName name) { - ToastUtils.showToastInUiThread(getContext(), "ExecutionService is disconnected"); // TODO: remove mBounded = false; mExecutionService = null; } public void onServiceConnected(ComponentName name, IBinder service) { - ToastUtils.showToastInUiThread(getContext(), "ExecutionService is connected"); // TODO: remove log.debug("Service is connected"); mBounded = true; ExecutionService.LocalBinder mLocalBinder = (ExecutionService.LocalBinder) service; @@ -835,7 +833,6 @@ public class DanaRFragment extends Fragment implements PluginBase, PumpInterface if (getDanaRPump() != null) { if (absoluteRate > getDanaRPump().maxBasal) { absoluteRate = getDanaRPump().maxBasal; - if (Config.logConstraintsChanges && origAbsoluteRate != Constants.basalAbsoluteOnlyForCheckLimit) if (Config.logConstraintsChanges && origAbsoluteRate != Constants.basalAbsoluteOnlyForCheckLimit) log.debug("Limiting rate " + origAbsoluteRate + "U/h by pump constraint to " + absoluteRate + "U/h"); } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Dialogs/ProfileViewDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Dialogs/ProfileViewDialog.java index b4f782f757..ed9980b68f 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Dialogs/ProfileViewDialog.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Dialogs/ProfileViewDialog.java @@ -73,8 +73,6 @@ public class ProfileViewDialog extends DialogFragment { @Override public void run() { DanaRFragment.getDanaRPump().lastSettingsRead = new Date(0); -// if (DanaRFragment.getDanaConnection() == null) DanaRFragment.setDanaConnection(new DanaConnection(MainApp.bus())); -// DanaRFragment.getDanaConnection().connectIfNotConnected("ProfileViewDialog"); DanaRFragment.doConnect("ProfileViewDialog"); } }); diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Services/ExecutionService.java b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Services/ExecutionService.java index 90016d7b6f..4e9c90b3ee 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Services/ExecutionService.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/DanaR/Services/ExecutionService.java @@ -229,7 +229,7 @@ public class ExecutionService extends Service { mSerialIOThread.disconnect("EventPreferenceChange"); } - private void getPumpStatus() { // TODO rename after + private void getPumpStatus() { try { MsgStatus statusMsg = new MsgStatus(); MsgStatusBasic statusBasicMsg = new MsgStatusBasic();