@@ -69,11 +69,6 @@ pub struct Context<'a, 'cfg> {
6969 /// metadata files in addition to the rlib itself. This is only filled in
7070 /// when `pipelining` above is enabled.
7171 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 > ,
7772}
7873
7974impl < ' a , ' cfg > Context < ' a , ' cfg > {
@@ -117,7 +112,6 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
117112 unit_dependencies,
118113 files : None ,
119114 rmeta_required : HashSet :: new ( ) ,
120- rustc_clients : HashMap :: new ( ) ,
121115 pipelining,
122116 } )
123117 }
@@ -497,21 +491,4 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
497491 pub fn rmeta_required ( & self , unit : & Unit < ' a > ) -> bool {
498492 self . rmeta_required . contains ( unit) || self . bcx . config . cli_unstable ( ) . timings . is_some ( )
499493 }
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- }
517494}
0 commit comments