aboutsummaryrefslogtreecommitdiffstats
path: root/components/bluetooth_traits/lib.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-12-21 14:39:10 +0100
committerMs2ger <Ms2ger@gmail.com>2016-12-21 14:52:39 +0100
commit7af7a10e7e71f540a660aa44fc58286b029de3f1 (patch)
tree7253e31125f2de08521a94c50f109a66bd65eaff /components/bluetooth_traits/lib.rs
parentc2e4e4295e31c562885848c82fcb8ad76c844799 (diff)
downloadservo-7af7a10e7e71f540a660aa44fc58286b029de3f1.tar.gz
servo-7af7a10e7e71f540a660aa44fc58286b029de3f1.zip
Separate the async bluetooth handling from networking code.
They're not at all related, besides both being asynchronous. This change adds a little extra code in response_async(), but makes this code more readable and reduces the unnecessary indirection. This change also makes the build system slightly more parallel, by dropping the dependency on bluetooth_traits from net_traits.
Diffstat (limited to 'components/bluetooth_traits/lib.rs')
-rw-r--r--components/bluetooth_traits/lib.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/components/bluetooth_traits/lib.rs b/components/bluetooth_traits/lib.rs
index ede1c8ecdba..f7293b74bb4 100644
--- a/components/bluetooth_traits/lib.rs
+++ b/components/bluetooth_traits/lib.rs
@@ -108,7 +108,3 @@ pub enum BluetoothResponse {
EnableNotification(()),
WatchAdvertisements(()),
}
-
-pub trait BluetoothResponseListener {
- fn response(&mut self, response: BluetoothResponseResult);
-}