relations: Eliminate getrel()
Most uses of getrel() have been replaced by the safer relations_with() in commit 0c60e57..67b9135, v4.3.27. Eliminate the remaining ones: * Convert rela() to use relations_with(). The case of relations to self, where the two differ, doesn't occur. The code becomes more easier to understand, even. * relations_with() is then getrel()'s last user. Inline. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
f54f655130
commit
414a5e179f
3 changed files with 3 additions and 13 deletions
|
@ -200,7 +200,6 @@ extern double techfact(int level, double mult);
|
|||
/* src/lib/common/nat.c */
|
||||
extern char *cname(natid n);
|
||||
extern char *natstate(struct natstr *np);
|
||||
extern enum relations getrel(struct natstr *np, natid them);
|
||||
extern enum relations relations_with(natid, natid);
|
||||
extern char *relations_string(enum relations);
|
||||
extern int nat_accepts(natid, natid, enum rej_comm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue