cpp-common/bt2c: remove lib-str.hpp
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 8 Feb 2024 03:15:37 +0000 (22:15 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 8 Feb 2024 17:02:55 +0000 (12:02 -0500)
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 <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11759
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/Makefile.am
src/cpp-common/bt2c/lib-str.hpp [deleted file]

index e01f8734eb1710f480fec5ea2aa16507795b3cf3..30b27a407bde56a9cd4e93795eaae9bec1a21209 100644 (file)
@@ -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 (file)
index 815f105..0000000
+++ /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<bt_message_type>(type));
-}
-
-} /* namespace bt2c */
-
-#endif /* BABELTRACE_CPP_COMMON_BT2C_LIB_STR_HPP */
This page took 0.026315 seconds and 4 git commands to generate.