From fc54ab48ec8328e7f911bcf5be7b88253f99faab Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 6 May 2021 15:27:26 +0200 Subject: [PATCH] Remove unused function, fix optimized builds --- libs/ardour/utils.cc | 5 ----- libs/pbd/stacktrace.cc | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index f63bf522cd..39a1833e04 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -698,8 +698,3 @@ ARDOUR::compute_sha1_of_file (std::string path) sha1_result_hash (&s, hash); return std::string (hash); } - -extern "C" { - void c_stacktrace() { stacktrace (cerr); } -} - diff --git a/libs/pbd/stacktrace.cc b/libs/pbd/stacktrace.cc index 5ce8413f04..6a21480ff5 100644 --- a/libs/pbd/stacktrace.cc +++ b/libs/pbd/stacktrace.cc @@ -133,8 +133,8 @@ PBD::stacktrace (std::ostream& out, int /*levels*/) #endif -void -c_stacktrace () -{ - PBD::stacktrace (std::cout); +#if 0 // unused +extern "C" { + void c_stacktrace () { PBD::stacktrace (std::cout); } } +#endif