diff --git a/src/librustc/middle/trans/type_.rs b/src/librustc/middle/trans/type_.rs index 9e95a9a6449ac..579405fc881f1 100644 --- a/src/librustc/middle/trans/type_.rs +++ b/src/librustc/middle/trans/type_.rs @@ -278,10 +278,6 @@ impl Type { Type::opaque_box(cx).ptr_to() } - pub fn enum_discrim(cx: &CrateContext) -> Type { - cx.int_type - } - pub fn opaque_trait(ctx: &CrateContext, store: ty::TraitStore) -> Type { let tydesc_ptr = ctx.tydesc_type.ptr_to(); let box_ty = match store {