Clean up struct nstr_sect and struct nstr_item a bit
Members read were always set to ef_read, remove and call directly. Member flag was only assigned to, never used, remove. Change member group to char to match struct empobj.
This commit is contained in:
parent
b10ebe6992
commit
7a4b7f75a0
5 changed files with 9 additions and 29 deletions
|
@ -61,10 +61,8 @@ nxtitem(struct nstr_item *np, void *ptr)
|
|||
} else {
|
||||
np->cur++;
|
||||
}
|
||||
if (!np->read(np->type, np->cur, ptr)) {
|
||||
/* if read fails, fatal */
|
||||
if (!ef_read(np->type, np->cur, ptr))
|
||||
return 0;
|
||||
}
|
||||
selected = 1;
|
||||
switch (np->sel) {
|
||||
case NS_LIST:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue