aboutsummaryrefslogtreecommitdiff
path: root/src/ui_interface.h
diff options
context:
space:
mode:
authorJorge Timón <jtimon@jtimon.cc>2015-04-16 16:20:01 +0200
committerJorge Timón <jtimon@jtimon.cc>2015-04-16 19:58:48 +0200
commitb74dcb3b4aa29958d22135f2d6c015578069e83c (patch)
tree3c7555117404c14c54be2415c00d6a7b65e951da /src/ui_interface.h
parent8f955b9661224adc950e302b42d2f7bcb5e90bef (diff)
downloadbitcoin-b74dcb3b4aa29958d22135f2d6c015578069e83c.tar.xz
Separate CTranslationInterface from CClientUIInterface
Diffstat (limited to 'src/ui_interface.h')
-rw-r--r--src/ui_interface.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/ui_interface.h b/src/ui_interface.h
index 3f11a1ddab..32a92a4b81 100644
--- a/src/ui_interface.h
+++ b/src/ui_interface.h
@@ -78,9 +78,6 @@ public:
/** Progress message during initialization. */
boost::signals2::signal<void (const std::string &message)> InitMessage;
- /** Translate a message to the native language of the user. */
- boost::signals2::signal<std::string (const char* psz)> Translate;
-
/** Number of network connections changed. */
boost::signals2::signal<void (int newNumConnections)> NotifyNumConnectionsChanged;
@@ -102,14 +99,4 @@ public:
extern CClientUIInterface uiInterface;
-/**
- * Translation function: Call Translate signal on UI interface, which returns a boost::optional result.
- * If no translation slot is registered, nothing is returned, and simply return the input.
- */
-inline std::string _(const char* psz)
-{
- boost::optional<std::string> rv = uiInterface.Translate(psz);
- return rv ? (*rv) : psz;
-}
-
#endif // BITCOIN_UI_INTERFACE_H