From baf90e00e9fabdac42398eff20af1c670527cef2 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Thu, 4 Jul 2019 16:33:49 +0200 Subject: [PATCH] Remove check for TRACETOOLS_LTTNG_ENABLED in header file --- tracetools/include/tracetools/utils.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tracetools/include/tracetools/utils.hpp b/tracetools/include/tracetools/utils.hpp index 955c303..2e882bc 100644 --- a/tracetools/include/tracetools/utils.hpp +++ b/tracetools/include/tracetools/utils.hpp @@ -27,7 +27,6 @@ const char * _get_symbol_funcptr(void * funcptr); template const char * get_symbol(std::function f) { -#if defined(TRACETOOLS_LTTNG_ENABLED) && !defined(_WIN32) typedef T (fnType)(U...); fnType ** fnPointer = f.template target(); // If we get an actual address @@ -37,10 +36,6 @@ const char * get_symbol(std::function f) } // Otherwise we have to go through target_type() return _demangle_symbol(f.target_type().name()); -#else - (void)f; - return "DISABLED__get_symbol"; -#endif } #endif // TRACETOOLS__UTILS_HPP_