From 44235713ed0ad1810328f21108d32bbac04de87b Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 26 Feb 2014 13:23:52 +0100 Subject: Replace PrintException with PrintExceptionContinue + throw Just a pet peeve. (PrintException has exactly the same body as PrintExceptionContinue but does a re-throw at the end. Move these re-throws to the call site, this aids understanding what is going on as well as eliminates a bit of code duplication in util.cpp) --- src/util.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/util.cpp') diff --git a/src/util.cpp b/src/util.cpp index 8cfd1c2e03..0cc472ac97 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -948,15 +948,6 @@ void LogException(std::exception* pex, const char* pszThread) LogPrintf("\n%s", message); } -void PrintException(std::exception* pex, const char* pszThread) -{ - std::string message = FormatException(pex, pszThread); - LogPrintf("\n\n************************\n%s\n", message); - fprintf(stderr, "\n\n************************\n%s\n", message.c_str()); - strMiscWarning = message; - throw; -} - void PrintExceptionContinue(std::exception* pex, const char* pszThread) { std::string message = FormatException(pex, pszThread); -- cgit v1.2.3