Remove duplicate CASE_RETURN_TEXT
Bug: 301661850
Test: mma packages/modules/Bluetooth
Change-Id: I6aa2b466c8d73f67e0ebb173425e85da429c8363
diff --git a/system/stack/include/sdp_status.h b/system/stack/include/sdp_status.h
index bd5cf75..cfb81f8 100644
--- a/system/stack/include/sdp_status.h
+++ b/system/stack/include/sdp_status.h
@@ -22,6 +22,8 @@
#include <cstdint>
+#include "macros.h"
+
/*****************************************************************************
* Constants
****************************************************************************/
@@ -54,12 +56,6 @@
using tSDP_RESULT = tSDP_STATUS;
using tSDP_REASON = tSDP_STATUS;
-#ifndef CASE_RETURN_TEXT
-#define CASE_RETURN_TEXT(code) \
- case code: \
- return #code
-#endif // CASE_RETURN_TEXT
-
inline std::string sdp_status_text(const tSDP_STATUS& status) {
switch (status) {
CASE_RETURN_TEXT(SDP_SUCCESS);
@@ -89,5 +85,3 @@
}
}
const auto sdp_result_text = sdp_status_text;
-
-#undef CASE_RETURN_TEXT