File tree 1 file changed +0
-30
lines changed
talpid-wireguard/src/wireguard_go
1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -234,36 +234,6 @@ impl Tunnel for WgGoTunnel {
234
234
}
235
235
}
236
236
237
- #[ cfg( daita) ]
238
- fn load_maybenot_machines ( resource_dir : & Path ) -> Result < CString > {
239
- let path = resource_dir. join ( "maybenot_machines_v2" ) ;
240
- log:: debug!( "Reading maybenot machines from {}" , path. display( ) ) ;
241
-
242
- let machines = fs:: read_to_string ( path) . map_err ( |e| TunnelError :: StartDaita ( Box :: new ( e) ) ) ?;
243
- let machines = CString :: new ( machines) . map_err ( |e| TunnelError :: StartDaita ( Box :: new ( e) ) ) ?;
244
- Ok ( machines)
245
- }
246
-
247
- #[ cfg( test) ]
248
- mod test {
249
- /// Test whether `maybenot_machines` in dist-assets contains valid machines.
250
- /// TODO: Remove when switching to dynamic machines.
251
- #[ cfg( daita) ]
252
- #[ test]
253
- fn test_load_maybenot_machines ( ) {
254
- use super :: load_maybenot_machines;
255
- use std:: path:: PathBuf ;
256
-
257
- let dist_assets = std:: env:: var ( "CARGO_MANIFEST_DIR" )
258
- . map ( PathBuf :: from)
259
- . expect ( "CARGO_MANIFEST_DIR env var not set" )
260
- . join ( ".." )
261
- . join ( "dist-assets" ) ;
262
- let machines = load_maybenot_machines ( & dist_assets) . unwrap ( ) ;
263
- wireguard_go_rs:: validate_maybenot_machines ( & machines) . unwrap ( ) ;
264
- }
265
- }
266
-
267
237
mod stats {
268
238
use super :: { Stats , StatsMap } ;
269
239
You can’t perform that action at this time.
0 commit comments