summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2020-04-27 15:23:54 +0200
committerDavid Lönnhager <david.l@mullvad.net>2020-04-28 13:56:26 +0200
commitb6ae86c12185ef5b23f7350912405a11428e43bd (patch)
tree67ef2c0b416c9eb0a5ca8f96fa316429fe38e848
parentff6db08289c884e871368dcc915116f94a79b6c0 (diff)
downloadmullvadvpn-b6ae86c12185ef5b23f7350912405a11428e43bd.tar.xz
mullvadvpn-b6ae86c12185ef5b23f7350912405a11428e43bd.zip
Remove error types not used by RouteManager
-rw-r--r--talpid-core/src/routing/linux.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/talpid-core/src/routing/linux.rs b/talpid-core/src/routing/linux.rs
index a186eb5fa3..c7417f7608 100644
--- a/talpid-core/src/routing/linux.rs
+++ b/talpid-core/src/routing/linux.rs
@@ -39,34 +39,6 @@ pub type Result<T> = std::result::Result<T, Error>;
#[derive(err_derive::Error, Debug)]
#[error(no_from)]
pub enum Error {
- /// Failed to add route.
- #[error(display = "Failed to add route")]
- FailedToAddRoute(#[error(source)] io::Error),
-
- /// Failed to remove route.
- #[error(display = "Failed to remove route")]
- FailedToRemoveRoute(#[error(source)] io::Error),
-
- /// Error while running "ip route".
- #[error(display = "Error while running \"ip route\"")]
- FailedToRunIp(#[error(source)] io::Error),
-
- /// Invocation of `ip route` ended with a non-zero exit code
- #[error(display = "ip returend a non-zero exit code")]
- ErrorIpFailed,
-
- /// Received unexpected output from `ip route`
- #[error(display = "Received unexpected output from \"ip\"")]
- UnexpectedOutput,
-
- /// No default route exists
- #[error(display = "No default route in \"ip route\" output")]
- NoDefaultRoute,
-
- /// Route table change stream failed.
- #[error(display = "Route change listener failed")]
- NetlinkConnectionError(#[error(source)] failure::Compat<rtnetlink::Error>),
-
#[error(display = "Failed to open a netlink connection")]
ConnectError(#[error(source)] io::Error),