summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2020-12-01 13:57:06 +0100
committerDavid Lönnhager <david.l@mullvad.net>2020-12-03 11:31:35 +0100
commita51c84e78beeb3eb7e6e2c6f89f6889b70f5a9da (patch)
tree6c2ac92f469f59bd48ca93bcbe7656d8115c4e3c /gui/src
parent9bdef8c490d3897b6e6cd29de48169a08075aa22 (diff)
downloadmullvadvpn-a51c84e78beeb3eb7e6e2c6f89f6889b70f5a9da.tar.xz
mullvadvpn-a51c84e78beeb3eb7e6e2c6f89f6889b70f5a9da.zip
Remove obsolete virtual adapter code and errors
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/daemon-rpc.ts2
-rw-r--r--gui/src/shared/daemon-rpc-types.ts7
-rw-r--r--gui/src/shared/notifications/error.ts5
3 files changed, 1 insertions, 13 deletions
diff --git a/gui/src/main/daemon-rpc.ts b/gui/src/main/daemon-rpc.ts
index ffb455365c..7f9e6d629b 100644
--- a/gui/src/main/daemon-rpc.ts
+++ b/gui/src/main/daemon-rpc.ts
@@ -776,8 +776,6 @@ function convertFromTunnelStateErrorCause(
return { reason: 'ipv6_unavailable' };
case grpcTypes.ErrorState.Cause.START_TUNNEL_ERROR:
return { reason: 'start_tunnel_error' };
- case grpcTypes.ErrorState.Cause.VIRTUAL_ADAPTER_PROBLEM:
- return { reason: 'virtual_adapter_problem' };
case grpcTypes.ErrorState.Cause.SET_FIREWALL_POLICY_ERROR:
return {
reason: 'set_firewall_policy_error',
diff --git a/gui/src/shared/daemon-rpc-types.ts b/gui/src/shared/daemon-rpc-types.ts
index 95d8758088..597220e6c8 100644
--- a/gui/src/shared/daemon-rpc-types.ts
+++ b/gui/src/shared/daemon-rpc-types.ts
@@ -33,12 +33,7 @@ export type TunnelParameterError =
export type ErrorStateCause =
| {
- reason:
- | 'ipv6_unavailable'
- | 'set_dns_error'
- | 'start_tunnel_error'
- | 'is_offline'
- | 'virtual_adapter_problem';
+ reason: 'ipv6_unavailable' | 'set_dns_error' | 'start_tunnel_error' | 'is_offline';
}
| { reason: 'set_firewall_policy_error'; details: FirewallPolicyError }
| { reason: 'tunnel_parameter_error'; details: TunnelParameterError }
diff --git a/gui/src/shared/notifications/error.ts b/gui/src/shared/notifications/error.ts
index 672dc27b94..d580bf1f1e 100644
--- a/gui/src/shared/notifications/error.ts
+++ b/gui/src/shared/notifications/error.ts
@@ -117,11 +117,6 @@ function getMessage(errorDetails: IErrorState, accountExpiry?: string): string {
'notifications',
"Your device is offline. Try connecting when it's back online.",
);
- case 'virtual_adapter_problem':
- return messages.pgettext(
- 'notifications',
- 'Unable to detect a working virtual adapter on this device. Try enabling it. Otherwise, please reinstall the app.',
- );
}
}
}