diff --git a/src/librustc/middle/borrowck/check_loans.rs b/src/librustc/middle/borrowck/check_loans.rs index 8f3a3d1440b..5f5fb6a22d9 100644 --- a/src/librustc/middle/borrowck/check_loans.rs +++ b/src/librustc/middle/borrowck/check_loans.rs @@ -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.