diff options
| author | David Lönnhager <david.l@mullvad.net> | 2022-03-16 09:30:50 +0100 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2022-03-18 10:27:40 +0100 |
| commit | 7f0ce804744d3e76afee25f06186764ddc6fe524 (patch) | |
| tree | 24cb7745fc0710af0a09d3ac13b4656eacb6df7d | |
| parent | af7a5fc08e0e887fa4b75db55d1300294e4f7103 (diff) | |
| download | mullvadvpn-7f0ce804744d3e76afee25f06186764ddc6fe524.tar.xz mullvadvpn-7f0ce804744d3e76afee25f06186764ddc6fe524.zip | |
Remove unused method
| -rw-r--r-- | talpid-core/src/routing/windows.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/talpid-core/src/routing/windows.rs b/talpid-core/src/routing/windows.rs index ec17d4feae..f7325b3963 100644 --- a/talpid-core/src/routing/windows.rs +++ b/talpid-core/src/routing/windows.rs @@ -119,19 +119,6 @@ impl RouteManager { } } - /// Sets a callback that is called whenever the default route changes. - pub fn add_default_route_callback<T: 'static>( - &mut self, - callback: Option<winnet::DefaultRouteChangedCallback>, - context: T, - ) -> Result<winnet::WinNetCallbackHandle> { - if self.manage_tx.is_none() { - return Err(Error::RouteManagerDown); - } - winnet::add_default_route_change_callback(callback, context) - .map_err(|_| Error::FailedToAddDefaultRouteCallback) - } - /// Stops the routing manager and invalidates the route manager - no new default route callbacks /// can be added pub fn stop(&mut self) { |
