@@ -114,8 +114,6 @@ impl WgGoTunnel {
114
114
let log_path = state. _logging_context . path . clone ( ) ;
115
115
let tun_provider = Arc :: clone ( & state. tun_provider ) ;
116
116
let routes = config. get_tunnel_destinations ( ) ;
117
- #[ cfg( daita) ]
118
- let resource_dir = state. resource_dir . clone ( ) ;
119
117
120
118
match self {
121
119
WgGoTunnel :: Multihop ( state) if !config. is_multihop ( ) => {
@@ -125,7 +123,6 @@ impl WgGoTunnel {
125
123
log_path. as_deref ( ) ,
126
124
tun_provider,
127
125
routes,
128
- & resource_dir,
129
126
connectivity_checker,
130
127
)
131
128
}
@@ -137,7 +134,6 @@ impl WgGoTunnel {
137
134
log_path. as_deref ( ) ,
138
135
tun_provider,
139
136
routes,
140
- & resource_dir,
141
137
connectivity_checker,
142
138
)
143
139
}
@@ -297,7 +293,6 @@ impl WgGoTunnel {
297
293
log_path : Option < & Path > ,
298
294
tun_provider : Arc < Mutex < TunProvider > > ,
299
295
routes : impl Iterator < Item = IpNetwork > ,
300
- #[ cfg( daita) ] resource_dir : & Path ,
301
296
mut connectivity_check : connectivity:: Check < connectivity:: Cancellable > ,
302
297
) -> Result < Self > {
303
298
let ( mut tunnel_device, tunnel_fd) =
@@ -328,8 +323,6 @@ impl WgGoTunnel {
328
323
_logging_context : logging_context,
329
324
tun_provider,
330
325
#[ cfg( daita) ]
331
- resource_dir : resource_dir. to_owned ( ) ,
332
- #[ cfg( daita) ]
333
326
config : config. clone ( ) ,
334
327
connectivity_checker : None ,
335
328
} ) ;
@@ -347,7 +340,6 @@ impl WgGoTunnel {
347
340
log_path : Option < & Path > ,
348
341
tun_provider : Arc < Mutex < TunProvider > > ,
349
342
routes : impl Iterator < Item = IpNetwork > ,
350
- #[ cfg( daita) ] resource_dir : & Path ,
351
343
mut connectivity_check : connectivity:: Check < connectivity:: Cancellable > ,
352
344
) -> Result < Self > {
353
345
let ( mut tunnel_device, tunnel_fd) =
@@ -394,8 +386,6 @@ impl WgGoTunnel {
394
386
_logging_context : logging_context,
395
387
tun_provider,
396
388
#[ cfg( daita) ]
397
- resource_dir : resource_dir. to_owned ( ) ,
398
- #[ cfg( daita) ]
399
389
config : config. clone ( ) ,
400
390
connectivity_checker : None ,
401
391
} ) ;
0 commit comments