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_