summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-20 21:16:49 +0200
committerCarl Hetherington <cth@carlh.net>2025-10-20 21:16:49 +0200
commita8d449a0a35f205833b446aeae66564aa2464736 (patch)
treebbc4b45b3e216c75d88131761215fdcd03d4a256 /src/util.cc
parent219776f17374c273d4da176c262e8c7ec7b1329b (diff)
Remove ASDCPErrorSuspender.v1.10.34
I think it's not possible to do this thread-safely without quite noisy changes to asdcplib: DefaultLogSink() refers a reference which can be deleted by ASDCPErrorSuspender before it is used. DefaultLogSink() could return a shared_ptr but there's a lot of callsites.
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/util.cc b/src/util.cc
index 8ad90dbf..77493ffa 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -410,21 +410,6 @@ dcp::unique_string (vector<string> existing, string base)
}
-ASDCPErrorSuspender::ASDCPErrorSuspender ()
- : _old (Kumu::DefaultLogSink())
-{
- _sink = new Kumu::EntryListLogSink(_log);
- Kumu::SetDefaultLogSink (_sink);
-}
-
-
-ASDCPErrorSuspender::~ASDCPErrorSuspender ()
-{
- Kumu::SetDefaultLogSink (&_old);
- delete _sink;
-}
-
-
boost::filesystem::path dcp::directory_containing_executable ()
{
#if BOOST_VERSION >= 106100