remove comment on zero width types.

They should not affect the normal case. It is better they affect the capacity calculation
This commit is contained in:
Brendan Hansknecht 2022-10-08 07:53:33 -07:00
parent eca4682787
commit 8269986113
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -150,9 +150,6 @@ pub const RocList = extern struct {
element_width: usize,
) usize {
var new_capacity: usize = 0;
// TODO: I think this shouldn't be done here.
// We should have a smarter way to deal with this that doesn't lead
// to allocating a refcount for zero width elements.
if (element_width == 0) {
return requested_length;
} else if (old_capacity == 0) {