From 276f052a804888e5c1d321183199bf37a42a94c2 Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Mon, 7 Nov 2016 14:40:52 -0500 Subject: [PATCH] Remove unused method CrateContext::rotate(). --- src/librustc_trans/context.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/librustc_trans/context.rs b/src/librustc_trans/context.rs index f7af2d6b855df..7657fc7d1c8b0 100644 --- a/src/librustc_trans/context.rs +++ b/src/librustc_trans/context.rs @@ -701,22 +701,6 @@ impl<'b, 'tcx> CrateContext<'b, 'tcx> { &self.local_ccxs[self.index] } - /// Get a (possibly) different `CrateContext` from the same - /// `SharedCrateContext`. - pub fn rotate(&'b self) -> CrateContext<'b, 'tcx> { - let (_, index) = - self.local_ccxs - .iter() - .zip(0..self.local_ccxs.len()) - .min_by_key(|&(local_ccx, _idx)| local_ccx.n_llvm_insns.get()) - .unwrap(); - CrateContext { - shared: self.shared, - index: index, - local_ccxs: &self.local_ccxs[..], - } - } - /// Either iterate over only `self`, or iterate over all `CrateContext`s in /// the `SharedCrateContext`. The iterator produces `(ccx, is_origin)` /// pairs, where `is_origin` is `true` if `ccx` is `self` and `false`