]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
remove prestium integration
authortobtoht <tob@featherwallet.org>
Tue, 18 Mar 2025 14:31:05 +0000 (15:31 +0100)
committertobtoht <tob@featherwallet.org>
Tue, 18 Mar 2025 14:31:05 +0000 (15:31 +0100)
src/main.cpp
src/utils/os/Prestium.cpp [deleted file]
src/utils/os/Prestium.h [deleted file]
src/widgets/NetworkProxyWidget.cpp
src/wizard/PageNetwork.cpp

index 214f202f13de1862be336a9e14a3524555113f62..b3a6ea2346ed852d4e219adcbf4c724b408e2053 100644 (file)
@@ -7,7 +7,6 @@
 #include "config-feather.h"
 #include "constants.h"
 #include "utils/EventFilter.h"
-#include "utils/os/Prestium.h"
 #include "WindowManager.h"
 #include "config.h"
 #include <wallet/api/wallet2_api.h>
@@ -176,13 +175,6 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
     if (!QDir().mkpath(walletDir))
         qCritical() << "Unable to create dir: " << walletDir;
 
-    // Prestium initial config
-    if (conf()->get(Config::firstRun).toBool() && Prestium::detect()) {
-        conf()->set(Config::proxy, Config::Proxy::i2p);
-        conf()->set(Config::socks5Port, Prestium::i2pPort());
-        conf()->set(Config::hideUpdateNotifications, true);
-    }
-
     if (parser.isSet("use-local-tor"))
         conf()->set(Config::useLocalTor, true);
 
diff --git a/src/utils/os/Prestium.cpp b/src/utils/os/Prestium.cpp
deleted file mode 100644 (file)
index 0acbbd0..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-FileCopyrightText: The Monero Project
-
-#include "Prestium.h"
-
-#include <QString>
-#include <QSysInfo>
-
-#include "utils/Utils.h"
-
-#define PRESTIUM_DEFAULT_PORT 4448
-
-bool Prestium::detect()
-{
-    return QSysInfo::prettyProductName().contains("Prestium");
-}
-
-int Prestium::i2pPort()
-{
-    QString portStr = qgetenv("PRESTIUM_FEATHER_I2P_PORT");
-    if (portStr.isEmpty()) {
-        return PRESTIUM_DEFAULT_PORT;
-    }
-
-    int port = portStr.toInt();
-    if (port < 1024 || port > 65535) {
-        return PRESTIUM_DEFAULT_PORT;
-    }
-
-    return port;
-}
\ No newline at end of file
diff --git a/src/utils/os/Prestium.h b/src/utils/os/Prestium.h
deleted file mode 100644 (file)
index d49a51f..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-FileCopyrightText: The Monero Project
-
-#ifndef FEATHER_PRESTIUM_H
-#define FEATHER_PRESTIUM_H
-
-
-class Prestium {
-public:
-    static bool detect();
-    static int i2pPort();
-};
-
-#endif //FEATHER_PRESTIUM_H
index d307b3dd10e0320d4beee1bd74f1f12ed4f22f9e..a50b893e91a2afa53e32f561af6abd6dc3456bcc 100644 (file)
@@ -9,7 +9,6 @@
 #include <QWidget>
 
 #include "utils/config.h"
-#include "utils/os/Prestium.h"
 
 NetworkProxyWidget::NetworkProxyWidget(QWidget *parent)
         : QWidget(parent)
@@ -95,11 +94,7 @@ void NetworkProxyWidget::updatePort() {
             break;
         }
         case Config::Proxy::i2p: {
-            if (Prestium::detect()) {
-                socks5port = 4448;
-            } else {
-                socks5port = 4447;
-            }
+            socks5port = 4447;
             break;
         }
         default: {
index c15b7aaf557099f2d7828841a320ab15daca199d..3ff23435dcd069b4366c8dbb19079a200db15ece 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "constants.h"
 #include "utils/nodes.h"
-#include "utils/os/Prestium.h"
 #include "Utils.h"
 #include "WalletWizard.h"
 
@@ -57,10 +56,6 @@ PageNetwork::PageNetwork(QWidget *parent)
 }
 
 int PageNetwork::nextId() const {
-    if (Prestium::detect()) {
-        return WalletWizard::Page_NetworkWebsocket;
-    }
-
     return WalletWizard::Page_NetworkProxy;
 }