diff options
| author | gingerBill <bill@gingerbill.org> | 2017-11-30 20:34:42 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-11-30 20:34:42 +0000 |
| commit | 1a75dfe07513359352985429d6c687327a4b0b73 (patch) | |
| tree | f7d0a85615370ab0f44e6764abecb9e5b7711c37 /src/check_type.cpp | |
| parent | e00d88d82efc5f3400b158a5f601ea6c73214442 (diff) | |
Remove `vector` type (will be replaced by something else in the future)
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 8842596b3..5c9654a2d 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1667,7 +1667,6 @@ Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type) { // Odin specific case Type_Slice: case Type_Array: - case Type_Vector: case Type_DynamicArray: case Type_Map: case Type_Union: @@ -1710,7 +1709,6 @@ Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type) { // Odin specific case Type_Slice: case Type_Array: - case Type_Vector: case Type_DynamicArray: case Type_Map: case Type_Union: @@ -2237,31 +2235,6 @@ bool check_type_internal(Checker *c, AstNode *e, Type **type, Type *named_type) return true; case_end; - - - case_ast_node(vt, VectorType, e); - - Operand o = {}; - i64 count = check_array_count(c, &o, vt->count); - Type *generic_type = nullptr; - if (o.mode == Addressing_Type && o.type->kind == Type_Generic) { - generic_type = o.type; - } - if (count < 0) { - count = 0; - } - - Type *elem = check_type(c, vt->elem); - Type *be = base_type(elem); - if (is_type_vector(be) || (!is_type_boolean(be) && !is_type_numeric(be) && be->kind != Type_Generic)) { - gbString err_str = type_to_string(elem); - error(vt->elem, "Vector element type must be numerical or a boolean, got '%s'", err_str); - gb_string_free(err_str); - } - *type = make_type_vector(c->allocator, elem, count, generic_type); - return true; - case_end; - case_ast_node(st, StructType, e); *type = make_type_struct(c->allocator); set_base_type(named_type, *type); |