Skip to content

Commit e51c29f

Browse files
committed
remove unused options
1 parent 6b744b2 commit e51c29f

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

src/comp/middle/trans.rs

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,10 +1157,7 @@ fn declare_tydesc(cx: @local_ctxt, sp: span, t: ty::t, ty_params: [uint],
11571157
ret info;
11581158
}
11591159

1160-
tag glue_helper {
1161-
default_helper(fn(@block_ctxt, ValueRef, ty::t));
1162-
copy_helper(fn(@block_ctxt, ValueRef, ValueRef, ty::t));
1163-
}
1160+
type glue_helper = fn(@block_ctxt, ValueRef, ty::t);
11641161

11651162
fn declare_generic_glue(cx: @local_ctxt, t: ty::t, llfnty: TypeRef, name: str)
11661163
-> ValueRef {
@@ -1215,14 +1212,7 @@ fn make_generic_glue_inner(cx: @local_ctxt, sp: span, t: ty::t,
12151212
let lltop = bcx.llbb;
12161213
let llrawptr0 = llvm::LLVMGetParam(llfn, 3u);
12171214
let llval0 = BitCast(bcx, llrawptr0, llty);
1218-
alt helper {
1219-
default_helper(helper) { helper(bcx, llval0, t); }
1220-
copy_helper(helper) {
1221-
let llrawptr1 = llvm::LLVMGetParam(llfn, 4u);
1222-
let llval1 = BitCast(bcx, llrawptr1, llty);
1223-
helper(bcx, llval0, llval1, t);
1224-
}
1225-
}
1215+
helper(bcx, llval0, t);
12261216
finish_fn(fcx, lltop);
12271217
ret llfn;
12281218
}
@@ -1749,7 +1739,7 @@ fn lazily_emit_tydesc_glue(cx: @block_ctxt, field: int,
17491739
"take");
17501740
ti.take_glue = some::<ValueRef>(glue_fn);
17511741
make_generic_glue(lcx, cx.sp, ti.ty, glue_fn,
1752-
default_helper(make_take_glue),
1742+
make_take_glue,
17531743
ti.ty_params, "take");
17541744
log #fmt["--- lazily_emit_tydesc_glue TAKE %s",
17551745
ty_to_str(bcx_tcx(cx), ti.ty)];
@@ -1767,7 +1757,7 @@ fn lazily_emit_tydesc_glue(cx: @block_ctxt, field: int,
17671757
"drop");
17681758
ti.drop_glue = some::<ValueRef>(glue_fn);
17691759
make_generic_glue(lcx, cx.sp, ti.ty, glue_fn,
1770-
default_helper(make_drop_glue),
1760+
make_drop_glue,
17711761
ti.ty_params, "drop");
17721762
log #fmt["--- lazily_emit_tydesc_glue DROP %s",
17731763
ty_to_str(bcx_tcx(cx), ti.ty)];
@@ -1785,7 +1775,7 @@ fn lazily_emit_tydesc_glue(cx: @block_ctxt, field: int,
17851775
"free");
17861776
ti.free_glue = some::<ValueRef>(glue_fn);
17871777
make_generic_glue(lcx, cx.sp, ti.ty, glue_fn,
1788-
default_helper(make_free_glue),
1778+
make_free_glue,
17891779
ti.ty_params, "free");
17901780
log #fmt["--- lazily_emit_tydesc_glue FREE %s",
17911781
ty_to_str(bcx_tcx(cx), ti.ty)];

0 commit comments

Comments
 (0)