mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Remove unused and bitrotting vshCommandOptStringList
Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
9aa236e19f
commit
ac475b9f83
@ -227,9 +227,6 @@ static char *vshCommandOptString(const vshCmd *cmd, const char *name,
|
|||||||
int *found);
|
int *found);
|
||||||
static long long vshCommandOptLongLong(const vshCmd *cmd, const char *name,
|
static long long vshCommandOptLongLong(const vshCmd *cmd, const char *name,
|
||||||
int *found);
|
int *found);
|
||||||
#if 0
|
|
||||||
static int vshCommandOptStringList(const vshCmd *cmd, const char *name, char ***data);
|
|
||||||
#endif
|
|
||||||
static int vshCommandOptBool(const vshCmd *cmd, const char *name);
|
static int vshCommandOptBool(const vshCmd *cmd, const char *name);
|
||||||
|
|
||||||
#define VSH_BYID (1 << 1)
|
#define VSH_BYID (1 << 1)
|
||||||
@ -9778,32 +9775,6 @@ vshCommandOptLongLong(const vshCmd *cmd, const char *name, int *found)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
static int
|
|
||||||
vshCommandOptStringList(const vshCmd *cmd, const char *name, char ***data)
|
|
||||||
{
|
|
||||||
vshCmdOpt *arg = cmd->opts;
|
|
||||||
char **val = NULL;
|
|
||||||
int nval = 0;
|
|
||||||
|
|
||||||
while (arg) {
|
|
||||||
if (arg->def && STREQ(arg->def->name, name)) {
|
|
||||||
char **tmp = realloc(val, sizeof(*tmp) * (nval+1));
|
|
||||||
if (!tmp) {
|
|
||||||
VIR_FREE(val);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
val = tmp;
|
|
||||||
val[nval++] = arg->data;
|
|
||||||
}
|
|
||||||
arg = arg->next;
|
|
||||||
}
|
|
||||||
|
|
||||||
*data = val;
|
|
||||||
return nval;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns TRUE/FALSE if the option exists
|
* Returns TRUE/FALSE if the option exists
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user