summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2025-07-22 13:37:16 +0200
committerLinus Färnstrand <linus@mullvad.net>2025-07-22 14:50:29 +0200
commited6d48a398bfb2701a0977abaf2e33e6eea48526 (patch)
treeb45c368693fb16a8d75acb4063f14ca778331816
parentb2fc803af349205bc40d7cd00e0a480536c3d09e (diff)
downloadmullvadvpn-ed6d48a398bfb2701a0977abaf2e33e6eea48526.tar.xz
mullvadvpn-ed6d48a398bfb2701a0977abaf2e33e6eea48526.zip
Remove unused code from settings migration
-rw-r--r--mullvad-daemon/src/migrations/v7.rs54
-rw-r--r--mullvad-daemon/src/migrations/v9.rs12
2 files changed, 0 insertions, 66 deletions
diff --git a/mullvad-daemon/src/migrations/v7.rs b/mullvad-daemon/src/migrations/v7.rs
index 4223505a47..54587f4771 100644
--- a/mullvad-daemon/src/migrations/v7.rs
+++ b/mullvad-daemon/src/migrations/v7.rs
@@ -1,11 +1,8 @@
-use std::net::SocketAddr;
-
use super::{Error, Result};
use mullvad_types::{
relay_constraints::{BridgeConstraints, BridgeSettings as NewBridgeSettings, BridgeType},
settings::SettingsVersion,
};
-use serde::{Deserialize, Serialize};
use talpid_types::net::{
Endpoint, TransportProtocol,
proxy::{CustomProxy, Shadowsocks, Socks5Local, Socks5Remote, SocksAuth},
@@ -15,57 +12,6 @@ use talpid_types::net::{
// Section for vendoring types and values that
// this settings version depend on. See `mod.rs`.
-/// Specifies a specific endpoint or [`BridgeConstraints`] to use when `mullvad-daemon` selects a
-/// bridge server.
-#[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)]
-#[serde(rename_all = "snake_case")]
-#[allow(unused)]
-pub enum BridgeSettings {
- /// Let the relay selection algorithm decide on bridges, based on the relay list.
- Normal(BridgeConstraints),
- Custom(ProxySettings),
-}
-
-/// Proxy server options to be used by `OpenVpnMonitor` when starting a tunnel.
-#[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize, Serialize)]
-#[serde(rename_all = "snake_case")]
-pub enum ProxySettings {
- Local(LocalProxySettings),
- Remote(RemoteProxySettings),
- Shadowsocks(ShadowsocksProxySettings),
-}
-
-/// Options for a generic proxy running on localhost.
-#[derive(Debug, Clone, Eq, PartialEq, Hash, Deserialize, Serialize)]
-pub struct LocalProxySettings {
- pub port: u16,
- pub peer: SocketAddr,
-}
-
-/// Options for a generic proxy running on remote host.
-#[derive(Debug, Clone, Eq, PartialEq, Hash, Deserialize, Serialize)]
-pub struct RemoteProxySettings {
- pub address: SocketAddr,
- pub auth: Option<ProxyAuth>,
-}
-
-#[derive(Debug, Clone, Eq, PartialEq, Hash, Deserialize, Serialize)]
-pub struct ProxyAuth {
- pub username: String,
- pub password: String,
-}
-
-/// Options for a bundled Shadowsocks proxy.
-#[derive(Debug, Clone, Eq, PartialEq, Hash, Deserialize, Serialize)]
-pub struct ShadowsocksProxySettings {
- pub peer: SocketAddr,
- /// Password on peer.
- pub password: String,
- pub cipher: String,
- #[cfg(target_os = "linux")]
- pub fwmark: Option<u32>,
-}
-
// ======================================================
// This is a closed migration.
diff --git a/mullvad-daemon/src/migrations/v9.rs b/mullvad-daemon/src/migrations/v9.rs
index 655b34acd4..a3bb045d03 100644
--- a/mullvad-daemon/src/migrations/v9.rs
+++ b/mullvad-daemon/src/migrations/v9.rs
@@ -1,4 +1,3 @@
-use serde::{Deserialize, Serialize};
#[cfg(target_os = "android")]
use serde_json::json;
#[cfg(target_os = "android")]
@@ -30,17 +29,6 @@ const SPLIT_TUNNELING_APPS: &str = "split-tunnelling.txt";
#[cfg(target_os = "android")]
const SPLIT_TUNNELING_STATE: &str = "split-tunnelling-enabled.txt";
-/// Tunnel protocol
-#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
-#[serde(rename = "tunnel_type")]
-#[allow(unused)]
-pub enum TunnelType {
- #[serde(rename = "openvpn")]
- OpenVpn,
- #[serde(rename = "wireguard")]
- Wireguard,
-}
-
// ======================================================
/// This is an open migration