cpp-common/bt2: make `MessageType` a wise enum
[babeltrace.git] / src / cpp-common / bt2c / fmt.hpp
index 4633ebca73b03233e1cc2c9ec7e9df120c66d463..a78d7a61af83f37bb7f5b4c96c0035b568401908 100644 (file)
@@ -4,8 +4,6 @@
  * SPDX-License-Identifier: MIT
  */
 
-#include "common/common.h"
-#include "cpp-common/bt2/message.hpp"
 #include "cpp-common/vendor/fmt/format.h" /* IWYU pragma: keep */
 #include "cpp-common/vendor/wise-enum/wise_enum.h"
 
@@ -27,11 +25,6 @@ template <typename T>
     return wise_enum::to_string<T>(val);
 }
 
-inline const char *format_as(const MessageType type)
-{
-    return bt_common_message_type_string(static_cast<bt_message_type>(type));
-}
-
 } /* namespace bt2 */
 
 namespace bt2c {
This page took 0.024398 seconds and 4 git commands to generate.