diff options
| author | gingerBill <bill@gingerbill.org> | 2021-05-15 18:59:54 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-05-15 18:59:54 +0100 |
| commit | 7b7081d60733caa996a89be2651482a2aeed8bbd (patch) | |
| tree | 6162be3716d2e72aa922370fe0c9587e6e7e40df /src/check_decl.cpp | |
| parent | 5ae564cc8c6934675c25cb251e753103e4549c52 (diff) | |
Remove old dead code
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index baabe4184..5e8e79791 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -289,17 +289,6 @@ void check_type_decl(CheckerContext *ctx, Entity *e, Ast *init_expr, Type *def) if (decl != nullptr) { AttributeContext ac = {}; check_decl_attributes(ctx, decl->attributes, type_decl_attribute, &ac); - if (ac.atom_op_table != nullptr) { - Type *bt = base_type(e->type); - switch (bt->kind) { - case Type_Struct: - bt->Struct.atom_op_table = ac.atom_op_table; - break; - default: - error(e->token, "Only struct types can have custom atom operations"); - break; - } - } } |