From 26ff7d67e3a22eb460299bb24d87b3de731ea056 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Fri, 7 Apr 2017 00:11:25 +0200 Subject: [PATCH] Remove some now useless code --- .../gadgetbridge/activities/ControlCenterv2.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenterv2.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenterv2.java index 33d18fdbd..817f07a46 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenterv2.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenterv2.java @@ -250,15 +250,6 @@ public class ControlCenterv2 extends AppCompatActivity private void refreshPairedDevices() { List deviceList = deviceManager.getDevices(); - GBDevice connectedDevice = null; - - for (GBDevice device : deviceList) { - if (device.isConnected() || device.isConnecting()) { - connectedDevice = device; - break; - } - } - if (deviceList.isEmpty()) { background.setVisibility(View.VISIBLE); } else {