Skip to content

Commit 7920772

Browse files
committed
Remove the unused obsolete enum_discrim type.
1 parent e03f17e commit 7920772

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustc/middle/trans/type_.rs

-4
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,6 @@ impl Type {
278278
Type::opaque_box(cx).ptr_to()
279279
}
280280

281-
pub fn enum_discrim(cx: &CrateContext) -> Type {
282-
cx.int_type
283-
}
284-
285281
pub fn opaque_trait(ctx: &CrateContext, store: ty::TraitStore) -> Type {
286282
let tydesc_ptr = ctx.tydesc_type.ptr_to();
287283
let box_ty = match store {

0 commit comments

Comments
 (0)