diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-11-08 10:20:49 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-11-08 10:20:49 -0800 |
commit | f4647409b5fa658e463424c0a8249a4d72405d59 (patch) | |
tree | ff024555e70a2cb8649dbf7f494129d670997676 /036refcount.cc | |
parent | 2789e86118e1f4da63e5b8883ffdb4ef31c98887 (diff) | |
download | mu-f4647409b5fa658e463424c0a8249a4d72405d59.tar.gz |
3652
size_of(type_tree*) is a mess; clean it up with an eye to the final tangled version.
Diffstat (limited to '036refcount.cc')
-rw-r--r-- | 036refcount.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/036refcount.cc b/036refcount.cc index 765efba7..36aea6c0 100644 --- a/036refcount.cc +++ b/036refcount.cc @@ -402,16 +402,6 @@ void append_addresses(int base_offset, const type_tree* type, map<set<tag_condit } } -int static_array_length(const type_tree* type) { - if (!type->atom && !type->right->atom && type->right->right->atom // exactly 3 types - && is_integer(type->right->right->name)) { // third 'type' is a number - // get size from type - return to_integer(type->right->right->name); - } - cerr << to_string(type) << '\n'; - assert(false); -} - //: for the following unit tests we'll do the work of the transform by hand :(before "End Unit Tests") |