Skip to content

Commit

Permalink
remove unused tps_fn(); comment out unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Dec 14, 2011
1 parent af8e471 commit f7540b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/comp/middle/trans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ fn trans_stack_local_derived_tydesc(cx: @block_ctxt, llsz: ValueRef,

// Objects and closures store their type parameters differently (in the object
// or closure itself rather than in the type descriptor).
tag ty_param_storage { tps_normal; tps_obj(uint); tps_fn(uint); }
tag ty_param_storage { tps_normal; tps_obj(uint); }

fn get_derived_tydesc(cx: @block_ctxt, t: ty::t, escapes: bool,
storage: ty_param_storage,
Expand All @@ -958,7 +958,7 @@ fn get_derived_tydesc(cx: @block_ctxt, t: ty::t, escapes: bool,
let is_obj_body;
alt storage {
tps_normal. { is_obj_body = false; }
tps_obj(_) | tps_fn(_) { is_obj_body = true; }
tps_obj(_) { is_obj_body = true; }
}

bcx_ccx(cx).stats.n_derived_tydescs += 1u;
Expand Down Expand Up @@ -1006,7 +1006,6 @@ fn get_derived_tydesc(cx: @block_ctxt, t: ty::t, escapes: bool,
alt storage {
tps_normal. { obj_params = 0u; }
tps_obj(np) { obj_params = np; }
tps_fn(np) { obj_params = 0x80000000u | np; }
}

let v;
Expand Down
2 changes: 1 addition & 1 deletion src/comp/middle/trans_closure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn build_environment(bcx: @block_ctxt, lltydescs: [ValueRef],
};
}

let ccx = bcx_ccx(bcx);
//let ccx = bcx_ccx(bcx);
let tcx = bcx_tcx(bcx);

// First, synthesize a tuple type containing the types of all the
Expand Down

0 comments on commit f7540b1

Please sign in to comment.