Skip to content

Commit 7169907

Browse files
committed
rustc: Remove dead code
1 parent aac73b2 commit 7169907

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/librustc/middle/ty.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4164,14 +4164,6 @@ pub fn lookup_struct_field(cx: ctxt,
41644164
}
41654165
}
41664166
4167-
fn is_public(f: field_ty) -> bool {
4168-
// XXX: This is wrong.
4169-
match f.vis {
4170-
public | inherited => true,
4171-
private => false
4172-
}
4173-
}
4174-
41754167
fn struct_field_tys(fields: &[@struct_field]) -> ~[field_ty] {
41764168
do fields.map |field| {
41774169
match field.node.kind {

0 commit comments

Comments
 (0)