aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bluetoothremotegattdescriptor.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-09-22 13:56:29 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2017-09-22 13:56:31 +0200
commitd246c5cf2069aaac77054d1d8b43d96847bfb483 (patch)
tree81021d71a400d760217bfdfc22cefeb8fed8eca7 /components/script/dom/bluetoothremotegattdescriptor.rs
parent2400731bfcd42488d51c760c04443c65ed43d45f (diff)
downloadservo-d246c5cf2069aaac77054d1d8b43d96847bfb483.tar.gz
servo-d246c5cf2069aaac77054d1d8b43d96847bfb483.zip
Remove JSContext argument from AsyncBluetoothListener::handle_response
Diffstat (limited to 'components/script/dom/bluetoothremotegattdescriptor.rs')
-rw-r--r--components/script/dom/bluetoothremotegattdescriptor.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/components/script/dom/bluetoothremotegattdescriptor.rs b/components/script/dom/bluetoothremotegattdescriptor.rs
index 1ab100fb522..d05194af1d2 100644
--- a/components/script/dom/bluetoothremotegattdescriptor.rs
+++ b/components/script/dom/bluetoothremotegattdescriptor.rs
@@ -21,7 +21,6 @@ use dom::globalscope::GlobalScope;
use dom::promise::Promise;
use dom_struct::dom_struct;
use ipc_channel::ipc::IpcSender;
-use js::jsapi::JSContext;
use std::rc::Rc;
// http://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattdescriptor
@@ -145,11 +144,7 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor {
}
impl AsyncBluetoothListener for BluetoothRemoteGATTDescriptor {
- fn handle_response(
- &self, response: BluetoothResponse,
- _promise_cx: *mut JSContext,
- promise: &Rc<Promise>,
- ) {
+ fn handle_response(&self, response: BluetoothResponse, promise: &Rc<Promise>) {
match response {
// https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattdescriptor-readvalue
BluetoothResponse::ReadValue(result) => {