Removed memory management TODOs; that's already in TODO.md under array.c.
This commit is contained in:
parent
854d1f49af
commit
bdbf72e69f
2
box.c
2
box.c
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue