Skip to content

Commit

Permalink
librustc: Remove is_self_field from borrowck. Unused. rs=#rust
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwalton committed Dec 10, 2012
1 parent 9723d3a commit ac2b045
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/librustc/middle/borrowck/check_loans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,18 +328,6 @@ impl check_loan_ctxt {
}
}

fn is_self_field(cmt: cmt) -> bool {
match cmt.cat {
cat_comp(cmt_base, comp_field(*)) => {
match cmt_base.cat {
cat_special(sk_self) => true,
_ => false
}
}
_ => false
}
}

fn check_assignment(at: assignment_type, ex: @ast::expr) {
// We don't use cat_expr() here because we don't want to treat
// auto-ref'd parameters in overloaded operators as rvalues.
Expand Down

0 comments on commit ac2b045

Please sign in to comment.