Skip to content

Commit 09cf8aa

Browse files
committed
[squashme] remove bip70 proxy integration from optionsmodel
1 parent 7191074 commit 09cf8aa

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/qt/optionsmodel.cpp

-19
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include "wallet/walletdb.h"
2727
#endif
2828

29-
#include <QNetworkProxy>
3029
#include <QSettings>
3130
#include <QStringList>
3231

@@ -445,24 +444,6 @@ void OptionsModel::setDisplayUnit(const QVariant &value)
445444
}
446445
}
447446

448-
bool OptionsModel::getProxySettings(QNetworkProxy& proxy) const
449-
{
450-
// Directly query current base proxy, because
451-
// GUI settings can be overridden with -proxy.
452-
proxyType curProxy;
453-
if (GetProxy(NET_IPV4, curProxy)) {
454-
proxy.setType(QNetworkProxy::Socks5Proxy);
455-
proxy.setHostName(QString::fromStdString(curProxy.proxy.ToStringIP()));
456-
proxy.setPort(curProxy.proxy.GetPort());
457-
458-
return true;
459-
}
460-
else
461-
proxy.setType(QNetworkProxy::NoProxy);
462-
463-
return false;
464-
}
465-
466447
void OptionsModel::setRestartRequired(bool fRequired)
467448
{
468449
QSettings settings;

0 commit comments

Comments
 (0)