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
|
@ -119,7 +119,6 @@ snxtsct_area(struct nstr_sect *np, struct range *range)
|
|||
np->range = *range;
|
||||
np->ncond = 0;
|
||||
np->type = NS_AREA;
|
||||
np->read = ef_read;
|
||||
np->x = np->range.lx - 1;
|
||||
np->y = np->range.ly;
|
||||
np->dx = -1;
|
||||
|
@ -146,7 +145,6 @@ snxtsct_dist(struct nstr_sect *np, coord cx, coord cy, int dist)
|
|||
np->ncond = 0;
|
||||
np->dist = dist;
|
||||
np->type = NS_DIST;
|
||||
np->read = ef_read;
|
||||
np->x = np->range.lx - 1;
|
||||
np->y = np->range.ly;
|
||||
np->dx = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue