summaryrefslogtreecommitdiffhomepage
path: root/talpid-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'talpid-core/src')
-rw-r--r--talpid-core/src/routing/windows.rs13
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) {