aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-15 19:59:35 +0100
committergingerBill <bill@gingerbill.org>2018-06-15 19:59:35 +0100
commit5081ea1a0c2469ed77531a6a6718a9de86f1d140 (patch)
tree1d66bd9a94fe6d97575dd7f4cb6d2d21e5871dac /src/check_decl.cpp
parente9e7ce2606ae18dd96fde356860fe613ff5c5430 (diff)
Fix type aliasing comparison; Fix gb_utf8_decode
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index b23ab2b74..9580af157 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -248,16 +248,6 @@ void check_type_decl(CheckerContext *ctx, Entity *e, AstNode *type_expr, Type *d
named->Named.base = bt;
e->TypeName.is_type_alias = true;
}
- // if (is_alias) {
- // if (is_type_named(bt)) {
- // e->type = bt;
- // e->TypeName.is_type_alias = true;
- // } else {
- // gbString str = type_to_string(bt);
- // error(type_expr, "Type alias declaration with a non-named type '%s'", str);
- // gb_string_free(str);
- // }
- // }
}