The function is now unused, remove it.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
virCommandDryRunTokenNew;
virCommandExec;
virCommandFree;
-virCommandGetArgList;
virCommandGetBinaryPath;
virCommandGetGID;
virCommandGetUID;
}
-int
-virCommandGetArgList(virCommand *cmd,
- char ***args)
-{
- size_t i;
-
- if (virCommandHasError(cmd)) {
- virCommandRaiseError(cmd);
- return -1;
- }
-
- *args = g_new0(char *, cmd->nargs);
-
- for (i = 1; i < cmd->nargs; i++)
- (*args)[i - 1] = g_strdup(cmd->args[i]);
-
- return 0;
-}
-
-
/**
* virCommandArgListAccess:
* @cmd: command struct
bool stripCommandPath);
const char *virCommandGetBinaryPath(virCommand *cmd);
-int virCommandGetArgList(virCommand *cmd, char ***args);
int virCommandExec(virCommand *cmd, gid_t *groups, int ngroups) G_GNUC_WARN_UNUSED_RESULT;