Remove unused selpos routine.

This commit is contained in:
Alexandre Ratchov 2020-01-17 07:02:45 +01:00
parent 9bf7d85e7f
commit 36616e67a6
1 changed files with 1 additions and 17 deletions

View File

@ -42,7 +42,6 @@ struct info {
int cmpdesc(struct sioctl_desc *, struct sioctl_desc *);
int isdiag(struct info *);
struct info *selpos(struct info *);
struct info *vecent(struct info *, char *, int);
struct info *nextgrp(struct info *);
struct info *nextpar(struct info *);
@ -114,21 +113,6 @@ isdiag(struct info *e)
return e->desc.chan1.unit == e->desc.chan0.unit;
}
/*
* find the value of the given selector parameter
*/
struct info *
selpos(struct info *i)
{
while (i != NULL) {
if (i->curval)
return i;
i = i->next;
}
fprintf(stderr, "selpos: not found, bogus control\n");
abort();
}
/*
* find the selector or vector entry with the given name and channels
*/
@ -145,7 +129,7 @@ vecent(struct info *i, char *vstr, int vunit)
}
/*
* find the next parameter group
* find the next parameter of the same stream
*/
struct info *
nextgrp(struct info *i)