Remove unused variables.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
This commit is contained in:
OGINO Masanori 2013-07-31 16:02:42 +09:00
parent 6296dc0d73
commit 6a69d27a0f
2 changed files with 2 additions and 11 deletions

View File

@ -2258,15 +2258,13 @@ pub fn register_fn_full(ccx: @mut CrateContext,
node_type: ty::t)
-> ValueRef {
let llfty = type_of_fn_from_ty(ccx, node_type);
register_fn_fuller(ccx, sp, sym, node_id, node_type,
lib::llvm::CCallConv, llfty)
register_fn_fuller(ccx, sp, sym, node_id, lib::llvm::CCallConv, llfty)
}
pub fn register_fn_fuller(ccx: @mut CrateContext,
sp: span,
sym: ~str,
node_id: ast::NodeId,
_node_type: ty::t,
cc: lib::llvm::CallConv,
fn_ty: Type)
-> ValueRef {

View File

@ -1154,17 +1154,10 @@ pub fn register_foreign_fn(ccx: @mut CrateContext,
-> ValueRef {
let _icx = push_ctxt("foreign::register_foreign_fn");
let t = ty::node_id_to_type(ccx.tcx, node_id);
let sym = Cell::new(sym);
let tys = shim_types(ccx, node_id);
do tys.fn_ty.decl_fn |fnty| {
register_fn_fuller(ccx,
sp,
sym.take(),
node_id,
t,
lib::llvm::CCallConv,
fnty)
register_fn_fuller(ccx, sp, sym.take(), node_id, lib::llvm::CCallConv, fnty)
}
}