Removed memory management TODOs; that's already in TODO.md under array.c.

This commit is contained in:
Pietro Gagliardi 2015-05-04 15:10:03 -04:00
parent 854d1f49af
commit bdbf72e69f
1 changed files with 0 additions and 2 deletions

2
box.c
View File

@ -221,10 +221,8 @@ static void boxDelete(uiBox *ss, uintmax_t index)
uintmax_t i;
removed = b->controls[index].c;
// TODO switch to memmove?
for (i = index; i < b->len - 1; i++)
b->controls[i] = b->controls[i + 1];
// TODO memset the last one to NULL
b->len--;
uiControlSetParent(removed, NULL);
uiContainerUpdate(uiContainer(b));