From 8a7eaa48c56f779205e094520553f99780b9aeb4 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 7 Feb 2024 22:15:37 -0500 Subject: [PATCH] cpp-common/bt2c: remove lib-str.hpp This is unused, and I think it will never be. If we need something like this, it will likely be in the form of a `format_as` function used by the `{fmt}` library. Change-Id: I81e21d697f6b246c986c5c9126b1177a0d5bcb03 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/11759 Tested-by: jenkins Reviewed-by: Philippe Proulx --- src/Makefile.am | 1 - src/cpp-common/bt2c/lib-str.hpp | 21 --------------------- 2 files changed, 22 deletions(-) delete mode 100644 src/cpp-common/bt2c/lib-str.hpp diff --git a/src/Makefile.am b/src/Makefile.am index e01f8734..30b27a40 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -150,7 +150,6 @@ cpp_common_libcpp_common_la_SOURCES = \ cpp-common/bt2c/endian.hpp \ cpp-common/bt2c/exc.hpp \ cpp-common/bt2c/glib-up.hpp \ - cpp-common/bt2c/lib-str.hpp \ cpp-common/bt2c/libc-up.hpp \ cpp-common/bt2c/logging.hpp \ cpp-common/bt2c/prio-heap.hpp \ diff --git a/src/cpp-common/bt2c/lib-str.hpp b/src/cpp-common/bt2c/lib-str.hpp deleted file mode 100644 index 815f105f..00000000 --- a/src/cpp-common/bt2c/lib-str.hpp +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2022 EfficiOS, Inc. - * - * SPDX-License-Identifier: MIT - */ - -#ifndef BABELTRACE_CPP_COMMON_BT2C_LIB_STR_HPP -#define BABELTRACE_CPP_COMMON_BT2C_LIB_STR_HPP - -#include "cpp-common/bt2/message.hpp" - -namespace bt2c { - -static inline const char *messageTypeStr(const bt2::MessageType type) -{ - return bt_common_message_type_string(static_cast(type)); -} - -} /* namespace bt2c */ - -#endif /* BABELTRACE_CPP_COMMON_BT2C_LIB_STR_HPP */ -- 2.34.1