Skip to content

Commit 38b2e29

Browse files
committed
Misc small cleanups
1 parent 6fe59bf commit 38b2e29

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

src/librustc/middle/trans/base.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,12 +2406,7 @@ pub fn fill_fn_pair(bcx: @mut Block, pair: ValueRef, llfn: ValueRef,
24062406
}
24072407

24082408
pub fn item_path(ccx: &CrateContext, id: &ast::NodeId) -> path {
2409-
match ccx.tcx.items.get_copy(id) {
2410-
ast_map::node_item(i, p) =>
2411-
vec::append((*p).clone(), [path_name(i.ident)]),
2412-
// separate map for paths?
2413-
_ => fail!("item_path")
2414-
}
2409+
ty::item_path(ccx.tcx, ast_util::local_def(*id))
24152410
}
24162411

24172412
fn exported_name(ccx: @mut CrateContext, path: path, ty: ty::t, attrs: &[ast::Attribute]) -> ~str {

src/librustc/middle/trans/common.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,6 @@ pub fn tuplify_box_ty(tcx: ty::ctxt, t: ty::t) -> ty::t {
687687
t]);
688688
}
689689

690-
691690
// LLVM constant constructors.
692691
pub fn C_null(t: Type) -> ValueRef {
693692
unsafe {

src/librustc/middle/trans/foreign.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,6 @@ pub fn trans_intrinsic(ccx: @mut CrateContext,
839839
"visit_tydesc" => {
840840
let td = get_param(decl, first_real_arg);
841841
let visitor = get_param(decl, first_real_arg + 1u);
842-
//let llvisitorptr = alloca(bcx, val_ty(visitor));
843-
//Store(bcx, visitor, llvisitorptr);
844842
let td = PointerCast(bcx, td, ccx.tydesc_type.ptr_to());
845843
glue::call_tydesc_glue_full(bcx, visitor, td,
846844
abi::tydesc_field_visit_glue, None);

0 commit comments

Comments
 (0)