From ea4268b7067bf3c8588f1ec54b0add9a0f49f385 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 24 Sep 2008 17:38:46 -0700 Subject: Remove old code of CreateBonding. --- src/dbus-hci.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/dbus-hci.c') diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 007f0936..7261deaa 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -565,13 +565,7 @@ proceed: goto cleanup; } - /* reply authentication success or an error */ - if (dbus_message_is_method_call(bonding->msg, ADAPTER_INTERFACE, - "CreateBonding")) { - reply = new_authentication_return(bonding->msg, status); - dbus_connection_send(connection, reply, NULL); - dbus_message_unref(reply); - } else if ((device = adapter_find_device(adapter, paddr))) { + if ((device = adapter_find_device(adapter, paddr))) { if (status) { reply = new_authentication_return(bonding->msg, status); dbus_connection_send(connection, reply, NULL); @@ -1114,7 +1108,7 @@ void hcid_dbus_disconn_complete(bdaddr_t *local, uint8_t status, adapter_remove_auth_request(adapter, &dev->bdaddr); bonding = adapter_get_bonding_info(adapter); - /* Check if there is a pending CreateBonding request */ + /* Check if there is a pending Bonding request */ if (bonding && (bacmp(&bonding->bdaddr, &dev->bdaddr) == 0)) { if (bonding->cancel) { /* reply authentication canceled */ -- cgit