aboutsummaryrefslogtreecommitdiff
path: root/src/compile/fieldaccess.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile/fieldaccess.c')
-rw-r--r--src/compile/fieldaccess.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/compile/fieldaccess.c b/src/compile/fieldaccess.c
index 24e091f0..65c8f92b 100644
--- a/src/compile/fieldaccess.c
+++ b/src/compile/fieldaccess.c
@@ -48,13 +48,6 @@ Text_t compile_field_access(env_t *env, ast_t *ast) {
return Texts("Int$from_int64((", compile_to_pointer_depth(env, f->fielded, 0, false), ").length)");
code_err(ast, "There is no ", f->field, " field on lists");
}
- case SetType: {
- if (streq(f->field, "items"))
- return Texts("LIST_COPY((", compile_to_pointer_depth(env, f->fielded, 0, false), ").entries)");
- else if (streq(f->field, "length"))
- return Texts("Int$from_int64((", compile_to_pointer_depth(env, f->fielded, 0, false), ").entries.length)");
- code_err(ast, "There is no '", f->field, "' field on sets");
- }
case TableType: {
if (streq(f->field, "length")) {
return Texts("Int$from_int64((", compile_to_pointer_depth(env, f->fielded, 0, false), ").entries.length)");