Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0d42f14 authored by Kihong Seong's avatar Kihong Seong
Browse files

Remove unused GATT status code GATT_TOO_SHORT

Bug: 320443584
Test: m com.android.btservices
Flag: EXEMPT, deleting dead code
Change-Id: Iad8032e9b4ce3fc712b7ac3daf4f60f60345cc18
parent ad3c29e4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -62,7 +62,6 @@ typedef enum GattStatus : uint8_t {
  GATT_DATABASE_OUT_OF_SYNC = 0x12,
  GATT_VALUE_NOT_ALLOWED = 0x13,
  GATT_ILLEGAL_PARAMETER = 0x87,
  GATT_TOO_SHORT = 0x7f,
  GATT_NO_RESOURCES = 0x80,
  GATT_INTERNAL_ERROR = 0x81,
  GATT_WRONG_STATE = 0x82,
@@ -115,7 +114,6 @@ inline std::string gatt_status_text(const tGATT_STATUS& status) {
    CASE_RETURN_TEXT(GATT_DATABASE_OUT_OF_SYNC);
    CASE_RETURN_TEXT(GATT_VALUE_NOT_ALLOWED);
    CASE_RETURN_TEXT(GATT_ILLEGAL_PARAMETER);
    CASE_RETURN_TEXT(GATT_TOO_SHORT);
    CASE_RETURN_TEXT(GATT_NO_RESOURCES);
    CASE_RETURN_TEXT(GATT_INTERNAL_ERROR);
    CASE_RETURN_TEXT(GATT_WRONG_STATE);
+0 −1
Original line number Diff line number Diff line
@@ -188,7 +188,6 @@ TEST_F(StackGattTest, gatt_status_text) {
      std::make_pair(GATT_DATABASE_OUT_OF_SYNC, "GATT_DATABASE_OUT_OF_SYNC"),
      std::make_pair(GATT_VALUE_NOT_ALLOWED, "GATT_VALUE_NOT_ALLOWED"),
      std::make_pair(GATT_ILLEGAL_PARAMETER, "GATT_ILLEGAL_PARAMETER"),
      std::make_pair(GATT_TOO_SHORT, "GATT_TOO_SHORT"),
      std::make_pair(GATT_NO_RESOURCES, "GATT_NO_RESOURCES"),
      std::make_pair(GATT_INTERNAL_ERROR, "GATT_INTERNAL_ERROR"),
      std::make_pair(GATT_WRONG_STATE, "GATT_WRONG_STATE"),