Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Unified Diff: device/bluetooth/bluez/bluetooth_device_bluez.cc

Issue 2248913002: bluetooth: Implement RSSI and Tx Power on macOS and Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-refactor-adv-data
Patch Set: Address jyasskin's comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/bluez/bluetooth_device_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_device_bluez.cc b/device/bluetooth/bluez/bluetooth_device_bluez.cc
index 06044d6ba746108b9846111b98d0c6d9bd909b75..44338eb7250916fbd2047485b91c876f17d6ffc4 100644
--- a/device/bluetooth/bluez/bluetooth_device_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_device_bluez.cc
@@ -88,16 +88,6 @@ void ParseModalias(const dbus::ObjectPath& object_path,
*device_id = device_value;
}
-int8_t ClampPower(int16_t power) {
- if (power < INT8_MIN) {
- return INT8_MIN;
- }
- if (power > INT8_MAX) {
- return INT8_MAX;
- }
- return static_cast<int8_t>(power);
-}
-
void RecordPairingResult(BluetoothDevice::ConnectErrorCode error_code) {
UMAPairingResult pairing_result;
switch (error_code) {

Powered by Google App Engine
This is Rietveld 408576698