objlist: We no longer need to assert on mem alloc results.

They either succeed or raise exception.
This commit is contained in:
Paul Sokolovsky 2014-04-27 23:43:01 +03:00
parent 48bf6b3bd0
commit 7ce6a8fe46
1 changed files with 0 additions and 1 deletions

View File

@ -162,7 +162,6 @@ mp_obj_t mp_obj_list_append(mp_obj_t self_in, mp_obj_t arg) {
mp_obj_list_t *self = self_in; mp_obj_list_t *self = self_in;
if (self->len >= self->alloc) { if (self->len >= self->alloc) {
self->items = m_renew(mp_obj_t, self->items, self->alloc, self->alloc * 2); self->items = m_renew(mp_obj_t, self->items, self->alloc, self->alloc * 2);
assert(self->items);
self->alloc *= 2; self->alloc *= 2;
} }
self->items[self->len++] = arg; self->items[self->len++] = arg;