diff options
author | Sven Gothel <[email protected]> | 2022-05-16 14:55:04 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-05-16 14:56:04 +0200 |
commit | 7af9bafddf73ef4f127693178dab976c3492b70f (patch) | |
tree | eb29de3670351c3469ed6e8524d8f567bbef6c6a /java | |
parent | cc53af990263bfa09947ad3127e0de6a6ffcb493 (diff) |
Remove BTDeviceRegistry's 'device processing' list
See commits
- cc53af990263bfa09947ad3127e0de6a6ffcb493
- ca228cd0512be4642a41468ff92e688dbf296fcd
Diffstat (limited to 'java')
-rw-r--r-- | java/org/direct_bt/BTDeviceRegistry.java | 27 |
1 files changed, 0 insertions, 27 deletions
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<DeviceID> devicesInProcessing = Collections.synchronizedCollection(new HashSet<DeviceID>()); private static Collection<DeviceID> devicesProcessed = Collections.synchronizedCollection(new HashSet<DeviceID>()); 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<DeviceID> getProcessingDevices() { - return new ArrayList<DeviceID>(devicesInProcessing); - } - /** - * Clears internal list - */ - public static void clearProcessingDevices() { - devicesInProcessing.clear(); - } } |