From dab33682e028f73334dc387786937e79d29dfe11 Mon Sep 17 00:00:00 2001 From: Erica Bugden Date: Thu, 22 Aug 2024 14:32:22 -0400 Subject: [PATCH] debug-info: cleanup: Remove clangd unused includes Remove header files that are reported as unused by clangd. Change-Id: I408b88e14392a728a211480dcfe1f481df0675ab Signed-off-by: Erica Bugden Reviewed-on: https://review.lttng.org/c/babeltrace/+/13228 Reviewed-by: Simon Marchi --- src/plugins/lttng-utils/debug-info/bin-info.cpp | 6 ------ src/plugins/lttng-utils/debug-info/bin-info.hpp | 1 - src/plugins/lttng-utils/debug-info/debug-info.cpp | 1 - src/plugins/lttng-utils/debug-info/debug-info.hpp | 2 -- src/plugins/lttng-utils/debug-info/trace-ir-data-copy.hpp | 2 -- src/plugins/lttng-utils/debug-info/trace-ir-mapping.cpp | 1 - .../debug-info/trace-ir-metadata-field-class-copy.cpp | 1 - 7 files changed, 14 deletions(-) diff --git a/src/plugins/lttng-utils/debug-info/bin-info.cpp b/src/plugins/lttng-utils/debug-info/bin-info.cpp index 3931684e..ee10a5a4 100644 --- a/src/plugins/lttng-utils/debug-info/bin-info.cpp +++ b/src/plugins/lttng-utils/debug-info/bin-info.cpp @@ -10,13 +10,10 @@ #define BT_LOG_OUTPUT_LEVEL (bin->log_level) #define BT_LOG_TAG "PLUGIN/FLT.LTTNG-UTILS.DEBUG-INFO/BIN-INFO" -#include -#include #include #include #include #include -#include #include #include #include @@ -25,12 +22,9 @@ #include "logging/comp-logging.h" -#include "common/common.h" - #include "bin-info.hpp" #include "crc32.h" #include "dwarf.hpp" -#include "utils.hpp" /* * An address printed in hex is at most 20 bytes (16 for 64-bits + diff --git a/src/plugins/lttng-utils/debug-info/bin-info.hpp b/src/plugins/lttng-utils/debug-info/bin-info.hpp index 0cee8aee..d3c19c21 100644 --- a/src/plugins/lttng-utils/debug-info/bin-info.hpp +++ b/src/plugins/lttng-utils/debug-info/bin-info.hpp @@ -16,7 +16,6 @@ #include -#include "common/macros.h" #include "fd-cache/fd-cache.hpp" #define DEFAULT_DEBUG_DIR "/usr/lib/debug" diff --git a/src/plugins/lttng-utils/debug-info/debug-info.cpp b/src/plugins/lttng-utils/debug-info/debug-info.cpp index 08974257..cca1892b 100644 --- a/src/plugins/lttng-utils/debug-info/debug-info.cpp +++ b/src/plugins/lttng-utils/debug-info/debug-info.cpp @@ -28,7 +28,6 @@ #include "debug-info.hpp" #include "trace-ir-data-copy.hpp" #include "trace-ir-mapping.hpp" -#include "trace-ir-metadata-copy.hpp" #include "utils.hpp" #define DEFAULT_DEBUG_INFO_FIELD_NAME "debug_info" diff --git a/src/plugins/lttng-utils/debug-info/debug-info.hpp b/src/plugins/lttng-utils/debug-info/debug-info.hpp index 65d67af8..7c43700f 100644 --- a/src/plugins/lttng-utils/debug-info/debug-info.hpp +++ b/src/plugins/lttng-utils/debug-info/debug-info.hpp @@ -16,8 +16,6 @@ #include -#include "common/macros.h" - #define VPID_FIELD_NAME "vpid" #define IP_FIELD_NAME "ip" #define BADDR_FIELD_NAME "baddr" diff --git a/src/plugins/lttng-utils/debug-info/trace-ir-data-copy.hpp b/src/plugins/lttng-utils/debug-info/trace-ir-data-copy.hpp index 2f01adfc..3174ab21 100644 --- a/src/plugins/lttng-utils/debug-info/trace-ir-data-copy.hpp +++ b/src/plugins/lttng-utils/debug-info/trace-ir-data-copy.hpp @@ -12,8 +12,6 @@ #include -#include "common/macros.h" - #include "trace-ir-mapping.hpp" enum debug_info_trace_ir_mapping_status copy_trace_content(const bt_trace *in_trace, diff --git a/src/plugins/lttng-utils/debug-info/trace-ir-mapping.cpp b/src/plugins/lttng-utils/debug-info/trace-ir-mapping.cpp index e56599b4..3e169960 100644 --- a/src/plugins/lttng-utils/debug-info/trace-ir-mapping.cpp +++ b/src/plugins/lttng-utils/debug-info/trace-ir-mapping.cpp @@ -18,7 +18,6 @@ #include "common/assert.h" -#include "debug-info.hpp" #include "trace-ir-data-copy.hpp" #include "trace-ir-mapping.hpp" #include "trace-ir-metadata-copy.hpp" diff --git a/src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.cpp b/src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.cpp index 01319ccc..09e5aad3 100644 --- a/src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.cpp +++ b/src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.cpp @@ -17,7 +17,6 @@ #include "common/assert.h" #include "common/common.h" -#include "compat/compiler.h" #include "trace-ir-metadata-copy.hpp" #include "trace-ir-metadata-field-class-copy.hpp" -- 2.34.1