From dc13cd867d9c8504abc17d54a7539fa35bbfd8b4 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 8 Jun 2020 12:48:29 -0400 Subject: [PATCH] configure: remove unused configuration macros MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The `PYTHON_PLUGINS` and `ENABLE_DEBUG_INFO` configuration macros aren't effectively used, remove them. Change-Id: If965795f24f20aa1e275c829d44c5f9587a8e5fb Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/3622 Tested-by: jenkins Reviewed-by: Jérémie Galarneau --- configure.ac | 9 --------- src/cli/babeltrace2-cfg-cli-args-default.c | 6 ------ 2 files changed, 15 deletions(-) diff --git a/configure.ac b/configure.ac index 91d82300..4e3a07a2 100644 --- a/configure.ac +++ b/configure.ac @@ -417,15 +417,6 @@ AM_CONDITIONAL([ENABLE_PYTHON_COMMON_DEPS], [test "x$enable_python_bindings" = x # Set defines for optionnal features conditionnals in the source code -## jgalar: still used? -AS_IF([test "x$enable_python_plugins" = xyes], - [AC_DEFINE([PYTHON_PLUGINS], [1], [Python plugin support.])] -) - -AS_IF([test "x$enable_debug_info" = xyes], - [AC_DEFINE([ENABLE_DEBUG_INFO], [1], [Define to 1 if you enable the 'debug info' feature])] -) - AS_IF([test "x$enable_built_in_plugins" = xyes], [AC_DEFINE([BT_BUILT_IN_PLUGINS], [1], [Define to 1 to register plug-in attributes in static executable sections])] ) diff --git a/src/cli/babeltrace2-cfg-cli-args-default.c b/src/cli/babeltrace2-cfg-cli-args-default.c index fa06dabb..e75b1871 100644 --- a/src/cli/babeltrace2-cfg-cli-args-default.c +++ b/src/cli/babeltrace2-cfg-cli-args-default.c @@ -12,12 +12,6 @@ #include "babeltrace2-cfg-cli-args.h" #include "babeltrace2-cfg-cli-args-default.h" -#ifdef ENABLE_DEBUG_INFO -# define BT_ENABLE_DEBUG_INFO 1 -#else -# define BT_ENABLE_DEBUG_INFO 0 -#endif - #ifdef BT_SET_DEFAULT_IN_TREE_CONFIGURATION struct bt_config *bt_config_cli_args_create_with_default(int argc, -- 2.34.1