Index: device/bluetooth/bluetooth_device.cc |
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc |
index 665cbb685a68da5afedd3e6cdd60dd8898597fff..a42ae172f1a9013aaeb9ea9addd0c41bde58a115 100644 |
--- a/device/bluetooth/bluetooth_device.cc |
+++ b/device/bluetooth/bluetooth_device.cc |
@@ -485,22 +485,6 @@ BluetoothDevice::GetCharacteristicsByUUID( |
return characteristics; |
} |
-std::vector<device::BluetoothRemoteGattDescriptor*> |
-BluetoothDevice::GetDescriptorsByUUID( |
- device::BluetoothRemoteGattCharacteristic* characteristic, |
- const BluetoothUUID& descriptor_uuid) { |
- std::vector<device::BluetoothRemoteGattDescriptor*> descriptors; |
- DVLOG(1) << "Looking for descriptor: " << descriptor_uuid.canonical_value(); |
- for (auto* descriptor : characteristic->GetDescriptors()) { |
- DVLOG(1) << "Descriptor in cache: " |
- << descriptor->GetUUID().canonical_value(); |
- if (descriptor->GetUUID() == descriptor_uuid) { |
- descriptors.push_back(descriptor); |
- } |
- } |
- return descriptors; |
-} |
- |
void BluetoothDevice::DidConnectGatt() { |
for (const auto& callback : create_gatt_connection_success_callbacks_) { |
callback.Run( |