diff options
| author | MarcoFalke <[email protected]> | 2016-03-21 18:29:17 +0100 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2016-04-02 15:26:21 +0200 |
| commit | fabbf80f2f956e056e423f24318e9157367ff569 (patch) | |
| tree | 29cd6a37252053386a071d2a4ffcb8f9a77c0ff4 /src/init.cpp | |
| parent | Merge #7691: [Wallet] refactor wallet/init interaction (diff) | |
| download | discoin-fabbf80f2f956e056e423f24318e9157367ff569.tar.xz discoin-fabbf80f2f956e056e423f24318e9157367ff569.zip | |
[ui] Move InitError, InitWarning, AmountErrMsg
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/init.cpp b/src/init.cpp index 3667820a2..038b28cc3 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -94,7 +94,6 @@ enum BindFlags { }; static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat"; -CClientUIInterface uiInterface; // Declared but not defined in ui_interface.h ////////////////////////////////////////////////////////////////////////////// // @@ -266,18 +265,6 @@ void HandleSIGHUP(int) fReopenDebugLog = true; } -bool static InitError(const std::string &str) -{ - uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_ERROR); - return false; -} - -bool static InitWarning(const std::string &str) -{ - uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_WARNING); - return true; -} - bool static Bind(const CService &addr, unsigned int flags) { if (!(flags & BF_EXPLICIT) && IsLimited(addr)) return false; @@ -742,11 +729,6 @@ static std::string ResolveErrMsg(const char * const optname, const std::string& return strprintf(_("Cannot resolve -%s address: '%s'"), optname, strBind); } -static std::string AmountErrMsg(const char * const optname, const std::string& strValue) -{ - return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue); -} - void InitLogging() { fPrintToConsole = GetBoolArg("-printtoconsole", false); |