@@ -69,11 +69,6 @@ pub struct Context<'a, 'cfg> {
69
69
/// metadata files in addition to the rlib itself. This is only filled in
70
70
/// when `pipelining` above is enabled.
71
71
rmeta_required : HashSet < Unit < ' a > > ,
72
-
73
- /// When we're in jobserver-per-rustc process mode, this keeps those
74
- /// jobserver clients for each Unit (which eventually becomes a rustc
75
- /// process).
76
- pub rustc_clients : HashMap < Unit < ' a > , Client > ,
77
72
}
78
73
79
74
impl < ' a , ' cfg > Context < ' a , ' cfg > {
@@ -117,7 +112,6 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
117
112
unit_dependencies,
118
113
files : None ,
119
114
rmeta_required : HashSet :: new ( ) ,
120
- rustc_clients : HashMap :: new ( ) ,
121
115
pipelining,
122
116
} )
123
117
}
@@ -497,21 +491,4 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
497
491
pub fn rmeta_required ( & self , unit : & Unit < ' a > ) -> bool {
498
492
self . rmeta_required . contains ( unit) || self . bcx . config . cli_unstable ( ) . timings . is_some ( )
499
493
}
500
-
501
- pub fn new_jobserver ( & mut self ) -> CargoResult < Client > {
502
- let tokens = self . bcx . build_config . jobs as usize ;
503
- let client = Client :: new ( tokens) . chain_err ( || "failed to create jobserver" ) ?;
504
-
505
- // Drain the client fully
506
- for i in 0 ..tokens {
507
- client. acquire_raw ( ) . chain_err ( || {
508
- format ! (
509
- "failed to fully drain {}/{} token from jobserver at startup" ,
510
- i, tokens,
511
- )
512
- } ) ?;
513
- }
514
-
515
- Ok ( client)
516
- }
517
494
}
0 commit comments