@@ -223,7 +223,6 @@ pub struct CrateContext {
223223 tydesc_type : TypeRef ,
224224 int_type : TypeRef ,
225225 float_type : TypeRef ,
226- task_type : TypeRef ,
227226 opaque_vec_type : TypeRef ,
228227 builder : BuilderRef_res ,
229228 shape_cx : shape:: Ctxt ,
@@ -952,28 +951,6 @@ pub fn T_empty_struct() -> TypeRef { return T_struct([], false); }
952951// they are described by this opaque type.
953952pub fn T_vtable ( ) -> TypeRef { T_array ( T_ptr ( T_i8 ( ) ) , 1 u) }
954953
955- pub fn T_task ( targ_cfg : @session:: config ) -> TypeRef {
956- let t = T_named_struct ( "task" ) ;
957-
958- // Refcount
959- // Delegate pointer
960- // Stack segment pointer
961- // Runtime SP
962- // Rust SP
963- // GC chain
964-
965-
966- // Domain pointer
967- // Crate cache pointer
968-
969- let t_int = T_int ( targ_cfg) ;
970- let elems =
971- ~[ t_int, t_int, t_int, t_int,
972- t_int, t_int, t_int, t_int] ;
973- set_struct_body ( t, elems, false ) ;
974- return t;
975- }
976-
977954pub fn T_tydesc_field ( cx : @CrateContext , field : uint ) -> TypeRef {
978955 // Bit of a kludge: pick the fn typeref out of the tydesc..
979956
@@ -1103,8 +1080,6 @@ pub fn T_chan(cx: @CrateContext, _t: TypeRef) -> TypeRef {
11031080
11041081}
11051082
1106- pub fn T_taskptr ( cx : @CrateContext ) -> TypeRef { return T_ptr ( cx. task_type ) ; }
1107-
11081083
11091084pub fn T_opaque_cbox_ptr ( cx : @CrateContext ) -> TypeRef {
11101085 // closures look like boxes (even when they are ~fn or &fn)
0 commit comments