middle: typeck: rscope: remove dead code

This commit is contained in:
Corey Richardson 2014-04-01 10:46:43 -04:00
parent 3bd0a37c0b
commit fdcb104517
1 changed files with 0 additions and 8 deletions

View File

@ -14,7 +14,6 @@ use middle::ty;
use std::cell::Cell; use std::cell::Cell;
use syntax::ast; use syntax::ast;
use syntax::codemap::Span; use syntax::codemap::Span;
use syntax::owned_slice::OwnedSlice;
/// Defines strategies for handling regions that are omitted. For /// Defines strategies for handling regions that are omitted. For
/// example, if one writes the type `&Foo`, then the lifetime of /// example, if one writes the type `&Foo`, then the lifetime of
@ -72,10 +71,3 @@ impl RegionScope for BindingRscope {
ty::BrAnon(idx + i)))) ty::BrAnon(idx + i))))
} }
} }
pub fn bound_type_regions(defs: &[ty::RegionParameterDef])
-> OwnedSlice<ty::Region> {
assert!(defs.iter().all(|def| def.def_id.krate == ast::LOCAL_CRATE));
defs.iter().enumerate().map(
|(i, def)| ty::ReEarlyBound(def.def_id.node, i, def.name)).collect()
}