diff options
| author | Michael Woerister <michaelwoerister@posteo.net> | 2016-11-07 14:40:52 -0500 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo.net> | 2016-11-13 19:49:57 -0500 |
| commit | 276f052a804888e5c1d321183199bf37a42a94c2 (patch) | |
| tree | a950710249b0f77dc3adc1adfbb611486ce857c7 | |
| parent | 790a2f9b00602f951e903ac8b21f69e91737225c (diff) | |
| download | rust-276f052a804888e5c1d321183199bf37a42a94c2.tar.gz rust-276f052a804888e5c1d321183199bf37a42a94c2.zip | |
Remove unused method CrateContext::rotate().
| -rw-r--r-- | src/librustc_trans/context.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/librustc_trans/context.rs b/src/librustc_trans/context.rs index f7af2d6b855..7657fc7d1c8 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` |
