From 53ec6c3f9b495dd930cd061784251534bef58d74 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 5 Nov 2012 13:43:32 -0800 Subject: rt: Remove shape code --- src/rt/rust_util.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/rt/rust_util.cpp') diff --git a/src/rt/rust_util.cpp b/src/rt/rust_util.cpp index cd765184c1e..60e6cc3d842 100644 --- a/src/rt/rust_util.cpp +++ b/src/rt/rust_util.cpp @@ -1,19 +1,9 @@ #include "rust_type.h" -#include "rust_shape.h" // A hardcoded type descriptor for strings, since the runtime needs to // be able to create them. -struct rust_shape_tables empty_shape_tables; - -uint8_t str_body_shape[] = { - shape::SHAPE_UNBOXED_VEC, - 0x1, // is_pod - 0x1, 0x0, // size field: 1 - shape::SHAPE_U8 -}; - struct type_desc str_body_tydesc = { 1, // size 1, // align @@ -21,8 +11,8 @@ struct type_desc str_body_tydesc = { NULL, // drop_glue NULL, // free_glue NULL, // visit_glue - str_body_shape, // shape - &empty_shape_tables, // shape_tables + NULL, // shape + NULL, // shape_tables }; // -- cgit 1.4.1-3-g733a5