Remove unused variables.
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
This commit is contained in:
parent
6296dc0d73
commit
6a69d27a0f
@ -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 {
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user