From 2b70cbc992fbeca0707a2200f730ea32af7e162e Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Fri, 15 Jun 2012 17:20:07 -0700 Subject: Remove some dead code from rust_shape --- src/rt/rust_shape.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/rt') diff --git a/src/rt/rust_shape.h b/src/rt/rust_shape.h index 0de19321050..af447498185 100644 --- a/src/rt/rust_shape.h +++ b/src/rt/rust_shape.h @@ -492,13 +492,9 @@ ctxt::walk_res0() { reinterpret_cast(tables->resources); const rust_fn *dtor = resources[dtor_offset]; - // Read in the resource type parameters, but ignore them. - // TODO: remove after snapshot - uint16_t n_ty_params = get_u16_bump(sp); - for (uint16_t i = 0; i < n_ty_params; i++) { - uint16_t ty_param_len = get_u16_bump(sp); - sp += ty_param_len; - } + // Read in a dummy value; this used to be the number of parameters + uint16_t number_of_params = get_u16_bump(sp); + assert(number_of_params == 0 && "resource has type parameters on it"); uint16_t sp_size = get_u16_bump(sp); const uint8_t *end_sp = sp + sp_size; -- cgit 1.4.1-3-g733a5