Browse Source

remove LogException( ) which is never used

0.10
Kamil Domanski 11 years ago
parent
commit
595f691d0a
  1. 6
      src/util.cpp
  2. 2
      src/util.h

6
src/util.cpp

@ -885,12 +885,6 @@ static std::string FormatException(std::exception* pex, const char* pszThread)
"UNKNOWN EXCEPTION \n%s in %s \n", pszModule, pszThread); "UNKNOWN EXCEPTION \n%s in %s \n", pszModule, pszThread);
} }
void LogException(std::exception* pex, const char* pszThread)
{
std::string message = FormatException(pex, pszThread);
LogPrintf("\n%s", message);
}
void PrintExceptionContinue(std::exception* pex, const char* pszThread) void PrintExceptionContinue(std::exception* pex, const char* pszThread)
{ {
std::string message = FormatException(pex, pszThread); std::string message = FormatException(pex, pszThread);

2
src/util.h

@ -151,8 +151,6 @@ static inline bool error(const char* format)
return false; return false;
} }
void LogException(std::exception* pex, const char* pszThread);
void PrintExceptionContinue(std::exception* pex, const char* pszThread); void PrintExceptionContinue(std::exception* pex, const char* pszThread);
std::string FormatMoney(int64_t n, bool fPlus=false); std::string FormatMoney(int64_t n, bool fPlus=false);
bool ParseMoney(const std::string& str, int64_t& nRet); bool ParseMoney(const std::string& str, int64_t& nRet);

Loading…
Cancel
Save