/**
* vshReadlineCommandGenerator:
- * @text: optional command prefix
*
* Generator function for command completion.
*
* Returns a string list of all commands, or NULL on failure.
*/
static char **
-vshReadlineCommandGenerator(const char *text G_GNUC_UNUSED)
+vshReadlineCommandGenerator(void)
{
size_t grp_list_index = 0;
const vshCmdGrp *grp;
}
static char **
-vshReadlineOptionsGenerator(const char *text G_GNUC_UNUSED,
- const vshCmdDef *cmd,
+vshReadlineOptionsGenerator(const vshCmdDef *cmd,
vshCmd *last)
{
size_t list_index = 0;
opt = vshReadlineCommandFindOpt(partial);
if (!cmd) {
- list = vshReadlineCommandGenerator(text);
+ list = vshReadlineCommandGenerator();
} else if (!opt || opt->type == VSH_OT_BOOL) {
- list = vshReadlineOptionsGenerator(text, cmd, partial);
+ list = vshReadlineOptionsGenerator(cmd, partial);
} else if (opt && opt->completer) {
list = opt->completer(autoCompleteOpaque,
partial,