Skip to content

Commit eaf9df2

Browse files
committed
Remove dead code.
1 parent e731520 commit eaf9df2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/comp/middle/trans.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,19 +1247,6 @@ impure fn trans_mod(@trans_ctxt cx, &ast._mod m) {
12471247
fn collect_item(&@trans_ctxt cx, @ast.item i) -> @trans_ctxt {
12481248
alt (i.node) {
12491249
case (ast.item_fn(?name, ?f, ?fid, ?ann)) {
1250-
auto fn_inputs;
1251-
auto fn_output;
1252-
alt (typeck.ann_to_type(ann).struct) {
1253-
case (typeck.ty_fn(?ins, ?out)) {
1254-
fn_inputs = ins;
1255-
fn_output = out;
1256-
}
1257-
case (_) {
1258-
log "trans: fn item doesn't have function type!";
1259-
fail;
1260-
}
1261-
}
1262-
12631250
cx.items.insert(fid, i);
12641251
auto llty = node_type(cx, ann);
12651252
let str s = cx.names.next("_rust_fn") + "." + name;

0 commit comments

Comments
 (0)