diff options
| author | gingerBill <bill@gingerbill.org> | 2018-02-25 19:23:52 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-02-25 19:23:52 +0000 |
| commit | d63885a495d2314a5ef76337605a9ebeefb26218 (patch) | |
| tree | a47a575251d0be0020e3120e970e71ba55d3a651 /src/parser.hpp | |
| parent | f28a34fa99d68ce54c76272385ff9c172cc2ae59 (diff) | |
`array_make`
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index 5f8bf8a19..0fb12a460 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -148,13 +148,6 @@ enum StmtAllowFlag { -Array<AstNode *> make_ast_node_array(AstFile *f, isize init_capacity = 8) { - Array<AstNode *> a; - array_init(&a, heap_allocator(), init_capacity); - return a; -} - - // NOTE(bill): This massive define is so it is possible to create a discriminated union (and extra debug info) // for the AstNode. I personally prefer discriminated unions over subtype polymorphism as I can preallocate // all the nodes and even memcpy in a different kind of node |