diff options
author | Valentin Fokin <fokinv@inf.u-szeged.hu> | 2016-12-01 11:46:23 +0100 |
---|---|---|
committer | Attila Dusnoki <dati91@users.noreply.github.com> | 2016-12-02 12:50:53 +0100 |
commit | c33d89c92c3ed6fe1cddcc57e24b03090926bfe2 (patch) | |
tree | d6950c1e907312fe8718911b8d37014353fedff2 /components/script/dom/bluetooth.rs | |
parent | 0d896a8d820e31037d536f133b5a8b8c43c2e1a2 (diff) | |
download | servo-c33d89c92c3ed6fe1cddcc57e24b03090926bfe2.tar.gz servo-c33d89c92c3ed6fe1cddcc57e24b03090926bfe2.zip |
Moved the AttributeInstanceMaps from bluetooth to bluetoothDevice.
Diffstat (limited to 'components/script/dom/bluetooth.rs')
-rw-r--r-- | components/script/dom/bluetooth.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/components/script/dom/bluetooth.rs b/components/script/dom/bluetooth.rs index aa2c4c4639a..61a9588dfab 100644 --- a/components/script/dom/bluetooth.rs +++ b/components/script/dom/bluetooth.rs @@ -21,9 +21,6 @@ use dom::bindings::reflector::{Reflectable, reflect_dom_object}; use dom::bindings::str::DOMString; use dom::bluetoothadvertisingdata::BluetoothAdvertisingData; use dom::bluetoothdevice::BluetoothDevice; -use dom::bluetoothremotegattcharacteristic::BluetoothRemoteGATTCharacteristic; -use dom::bluetoothremotegattdescriptor::BluetoothRemoteGATTDescriptor; -use dom::bluetoothremotegattservice::BluetoothRemoteGATTService; use dom::bluetoothuuid::{BluetoothServiceUUID, BluetoothUUID}; use dom::eventtarget::EventTarget; use dom::globalscope::GlobalScope; @@ -90,9 +87,6 @@ impl<Listener: AsyncBluetoothListener + Reflectable> BluetoothResponseListener f pub struct Bluetooth { eventtarget: EventTarget, device_instance_map: DOMRefCell<HashMap<String, MutHeap<JS<BluetoothDevice>>>>, - service_instance_map: DOMRefCell<HashMap<String, MutHeap<JS<BluetoothRemoteGATTService>>>>, - characteristic_instance_map: DOMRefCell<HashMap<String, MutHeap<JS<BluetoothRemoteGATTCharacteristic>>>>, - descriptor_instance_map: DOMRefCell<HashMap<String, MutHeap<JS<BluetoothRemoteGATTDescriptor>>>>, } impl Bluetooth { @@ -100,9 +94,6 @@ impl Bluetooth { Bluetooth { eventtarget: EventTarget::new_inherited(), device_instance_map: DOMRefCell::new(HashMap::new()), - service_instance_map: DOMRefCell::new(HashMap::new()), - characteristic_instance_map: DOMRefCell::new(HashMap::new()), - descriptor_instance_map: DOMRefCell::new(HashMap::new()), } } @@ -112,19 +103,6 @@ impl Bluetooth { BluetoothBinding::Wrap) } - pub fn get_service_map(&self) -> &DOMRefCell<HashMap<String, MutHeap<JS<BluetoothRemoteGATTService>>>> { - &self.service_instance_map - } - - pub fn get_characteristic_map(&self) - -> &DOMRefCell<HashMap<String, MutHeap<JS<BluetoothRemoteGATTCharacteristic>>>> { - &self.characteristic_instance_map - } - - pub fn get_descriptor_map(&self) -> &DOMRefCell<HashMap<String, MutHeap<JS<BluetoothRemoteGATTDescriptor>>>> { - &self.descriptor_instance_map - } - fn get_bluetooth_thread(&self) -> IpcSender<BluetoothRequest> { self.global().as_window().bluetooth_thread() } |