Skip to content

Commit 276f052

Browse files
Remove unused method CrateContext::rotate().
1 parent 790a2f9 commit 276f052

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/librustc_trans/context.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -701,22 +701,6 @@ impl<'b, 'tcx> CrateContext<'b, 'tcx> {
701701
&self.local_ccxs[self.index]
702702
}
703703

704-
/// Get a (possibly) different `CrateContext` from the same
705-
/// `SharedCrateContext`.
706-
pub fn rotate(&'b self) -> CrateContext<'b, 'tcx> {
707-
let (_, index) =
708-
self.local_ccxs
709-
.iter()
710-
.zip(0..self.local_ccxs.len())
711-
.min_by_key(|&(local_ccx, _idx)| local_ccx.n_llvm_insns.get())
712-
.unwrap();
713-
CrateContext {
714-
shared: self.shared,
715-
index: index,
716-
local_ccxs: &self.local_ccxs[..],
717-
}
718-
}
719-
720704
/// Either iterate over only `self`, or iterate over all `CrateContext`s in
721705
/// the `SharedCrateContext`. The iterator produces `(ccx, is_origin)`
722706
/// pairs, where `is_origin` is `true` if `ccx` is `self` and `false`

0 commit comments

Comments
 (0)