@@ -2229,44 +2229,6 @@ inline op nqp_decontainerize(out PMC, invar PMC) :base_core {
2229
2229
$1 = decontainerize(interp, $2);
2230
2230
}
2231
2231
2232
- /*
2233
-
2234
- =item set_container_spec
2235
-
2236
- Sets the container spec for the type in $1 (it actaully sets it on
2237
- the s-table, so the type object or any instance of the type will do).
2238
-
2239
- Either set $2 and $3 to a class handle and an attribute name, or set
2240
- $4 to a code ref for the FETCH method. Generally, $2/$3 take precedence
2241
- over $4.
2242
-
2243
- =cut
2244
-
2245
- */
2246
- inline op set_container_spec(invar PMC, invar PMC, in STR, invar PMC) :base_core {
2247
- if ($1->vtable->base_type == smo_id) {
2248
- STable *st = STABLE($1);
2249
-
2250
- /* Allocate and populate new container spec. */
2251
- ContainerSpec *new_spec = mem_allocate_zeroed_typed(ContainerSpec);
2252
- new_spec->value_slot.class_handle = $2;
2253
- new_spec->value_slot.attr_name = $3;
2254
- new_spec->fetch_method = $4;
2255
-
2256
- /* Free any existing spec and put the new one in place. */
2257
- if (st->container_spec)
2258
- mem_sys_free(st->container_spec);
2259
- st->container_spec = new_spec;
2260
- PARROT_GC_WRITE_BARRIER(interp, STABLE_PMC($1));
2261
- ST_SC_WRITE_BARRIER(st);
2262
- }
2263
- else {
2264
- Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
2265
- "Can only use set_container_spec with a SixModelObject");
2266
- }
2267
- }
2268
-
2269
-
2270
2232
/*
2271
2233
2272
2234
=item set_invocation_spec
0 commit comments