diff options
| author | Corey Richardson <corey@octayn.net> | 2014-04-01 10:20:41 -0400 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2014-04-02 11:17:19 -0400 |
| commit | 77d1978f8e6535fdde242058f626b916a36b74c3 (patch) | |
| tree | 4fd386e6d6bcf5254a87d35cdb3e4c510d594a34 | |
| parent | 0ce17d941dbeab048de21dd72f893d3dab982988 (diff) | |
middle: borrowck: remove dead code
| -rw-r--r-- | src/librustc/middle/borrowck/mod.rs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/librustc/middle/borrowck/mod.rs b/src/librustc/middle/borrowck/mod.rs index b8b05128e4c..6f4f2f6345e 100644 --- a/src/librustc/middle/borrowck/mod.rs +++ b/src/librustc/middle/borrowck/mod.rs @@ -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 { |
