From 7af9bafddf73ef4f127693178dab976c3492b70f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 16 May 2022 14:55:04 +0200 Subject: Remove BTDeviceRegistry's 'device processing' list See commits - cc53af990263bfa09947ad3127e0de6a6ffcb493 - ca228cd0512be4642a41468ff92e688dbf296fcd --- java/org/direct_bt/BTDeviceRegistry.java | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'java') diff --git a/java/org/direct_bt/BTDeviceRegistry.java b/java/org/direct_bt/BTDeviceRegistry.java index 77c55703..15c04c43 100644 --- a/java/org/direct_bt/BTDeviceRegistry.java +++ b/java/org/direct_bt/BTDeviceRegistry.java @@ -130,7 +130,6 @@ public class BTDeviceRegistry { return "["+addressAndType+", "+name+"]"; } }; - private static Collection devicesInProcessing = Collections.synchronizedCollection(new HashSet()); private static Collection devicesProcessed = Collections.synchronizedCollection(new HashSet()); public static void addToWaitForDevices(final String addrOrNameSub) { @@ -292,30 +291,4 @@ public class BTDeviceRegistry { return q.isEUI48Sub() ? a.contains(q.addressSub) : n.indexOf(q.nameSub) >= 0; }); } - - - public static void addToProcessingDevices(final BDAddressAndType a, final String n) { - devicesInProcessing.add( new DeviceID(a, n) ); - } - public static boolean removeFromProcessingDevices(final BDAddressAndType a) { - return devicesInProcessing.remove( new DeviceID(a, null) ); - } - public static boolean isDeviceProcessing(final BDAddressAndType a) { - return devicesInProcessing.contains( new DeviceID(a, null) ); - } - public static int getProcessingDeviceCount() { - return devicesInProcessing.size(); - } - /** - * Returns a copy of the current collection of processing {@link DeviceID}. - */ - public static List getProcessingDevices() { - return new ArrayList(devicesInProcessing); - } - /** - * Clears internal list - */ - public static void clearProcessingDevices() { - devicesInProcessing.clear(); - } } -- cgit v1.2.3