aboutsummaryrefslogtreecommitdiff
path: root/src/util/system.h
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2023-03-06 17:22:33 +0100
committerTheCharlatan <seb.kung@gmail.com>2023-03-13 17:09:47 +0100
commite7333b420e35054d9302f9c58fd47b6152cbd35f (patch)
treeb7dd521363eeedcc4e2f353624facbe8cc679372 /src/util/system.h
parentf7bdcfc83f5753349018be3b5a663c8923d1a5eb (diff)
refactor: Extract util/exception from util/system
This is a minimal extraction of a single function, but also the only use of std::exception in util/system. The background of this commit is an ongoing effort to decouple the libbitcoinkernel library from the ArgsManager defined in system.h. Moving the function out of system.h allows including it from a separate source file without including the ArgsManager definitions from system.h.
Diffstat (limited to 'src/util/system.h')
-rw-r--r--src/util/system.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/util/system.h b/src/util/system.h
index f7bebe1f2a..2d07e64345 100644
--- a/src/util/system.h
+++ b/src/util/system.h
@@ -19,12 +19,10 @@
#include <fs.h>
#include <logging.h>
#include <sync.h>
-#include <tinyformat.h>
#include <util/settings.h>
#include <util/time.h>
#include <any>
-#include <exception>
#include <map>
#include <optional>
#include <set>
@@ -52,8 +50,6 @@ bool error(const char* fmt, const Args&... args)
return false;
}
-void PrintExceptionContinue(const std::exception* pex, std::string_view thread_name);
-
/**
* Ensure file contents are fully committed to disk, using a platform-specific
* feature analogous to fsync().