middle: borrowck: remove dead code

This commit is contained in:
Corey Richardson 2014-04-01 10:20:41 -04:00
parent 0ce17d941d
commit 77d1978f8e
1 changed files with 1 additions and 15 deletions

View File

@ -326,6 +326,7 @@ pub struct RestrictionSet {
bits: u32
}
#[allow(dead_code)] // potentially useful
pub static RESTR_EMPTY: RestrictionSet = RestrictionSet {bits: 0b0000};
pub static RESTR_MUTATE: RestrictionSet = RestrictionSet {bits: 0b0001};
pub static RESTR_FREEZE: RestrictionSet = RestrictionSet {bits: 0b0010};
@ -334,10 +335,6 @@ impl RestrictionSet {
pub fn intersects(&self, restr: RestrictionSet) -> bool {
(self.bits & restr.bits) != 0
}
pub fn contains_all(&self, restr: RestrictionSet) -> bool {
(self.bits & restr.bits) == restr.bits
}
}
impl BitOr<RestrictionSet,RestrictionSet> for RestrictionSet {
@ -862,17 +859,6 @@ impl<'a> BorrowckCtxt<'a> {
pub fn cmt_to_str(&self, cmt: mc::cmt) -> ~str {
self.mc().cmt_to_str(cmt)
}
pub fn mut_to_str(&self, mutbl: ast::Mutability) -> ~str {
self.mc().mut_to_str(mutbl)
}
pub fn mut_to_keyword(&self, mutbl: ast::Mutability) -> &'static str {
match mutbl {
ast::MutImmutable => "",
ast::MutMutable => "mut",
}
}
}
impl DataFlowOperator for LoanDataFlowOperator {