Skip to content

Commit ac2b045

Browse files
committed
librustc: Remove is_self_field from borrowck. Unused. rs=#rust
1 parent 9723d3a commit ac2b045

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/librustc/middle/borrowck/check_loans.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -328,18 +328,6 @@ impl check_loan_ctxt {
328328
}
329329
}
330330

331-
fn is_self_field(cmt: cmt) -> bool {
332-
match cmt.cat {
333-
cat_comp(cmt_base, comp_field(*)) => {
334-
match cmt_base.cat {
335-
cat_special(sk_self) => true,
336-
_ => false
337-
}
338-
}
339-
_ => false
340-
}
341-
}
342-
343331
fn check_assignment(at: assignment_type, ex: @ast::expr) {
344332
// We don't use cat_expr() here because we don't want to treat
345333
// auto-ref'd parameters in overloaded operators as rvalues.

0 commit comments

Comments
 (0)