From eaf9df2dc311f6338a7549256bd0b893de687ffa Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Sat, 20 Nov 2010 22:04:48 -0800 Subject: Remove dead code. --- src/comp/middle/trans.rs | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/comp') diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index b93235f2..9cf08e6b 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -1247,19 +1247,6 @@ impure fn trans_mod(@trans_ctxt cx, &ast._mod m) { fn collect_item(&@trans_ctxt cx, @ast.item i) -> @trans_ctxt { alt (i.node) { case (ast.item_fn(?name, ?f, ?fid, ?ann)) { - auto fn_inputs; - auto fn_output; - alt (typeck.ann_to_type(ann).struct) { - case (typeck.ty_fn(?ins, ?out)) { - fn_inputs = ins; - fn_output = out; - } - case (_) { - log "trans: fn item doesn't have function type!"; - fail; - } - } - cx.items.insert(fid, i); auto llty = node_type(cx, ann); let str s = cx.names.next("_rust_fn") + "." + name; -- cgit v1.2.3