Skip to content

Commit 6ed7871

Browse files
committed
middle: freevars: remove dead code
1 parent 4e5409b commit 6ed7871

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustc/middle/freevars.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,3 @@ pub fn get_freevars(tcx: &ty::ctxt, fid: ast::NodeId) -> freevar_info {
145145
Some(&d) => return d
146146
}
147147
}
148-
149-
pub fn has_freevars(tcx: &ty::ctxt, fid: ast::NodeId) -> bool {
150-
!get_freevars(tcx, fid).is_empty()
151-
}

0 commit comments

Comments
 (0)