virQEMUBuildNetdevCommandlineFromJSON: Remove unused formatter

Now that everything was replaced by the new code we can remove this
function.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-09-24 19:00:22 +02:00
parent 63a833038f
commit 2464e5523c
3 changed files with 0 additions and 35 deletions

View File

@ -3120,7 +3120,6 @@ virQEMUBuildCommandLineJSONArrayBitmap;
virQEMUBuildCommandLineJSONArrayNumbered;
virQEMUBuildCommandLineJSONArrayObjectsStr;
virQEMUBuildDriveCommandlineFromJSON;
virQEMUBuildNetdevCommandlineFromJSON;
# util/virrandom.h

View File

@ -283,36 +283,6 @@ virQEMUBuildCommandLineJSON(virJSONValue *value,
}
/**
* virQEMUBuildNetdevCommandlineFromJSON:
* @props: JSON properties describing a netdev
* @rawjson: don't transform to commandline args, but just stringify json
*
* Converts @props into arguments for -netdev including all the quirks and
* differences between the monitor and command line syntax.
*
* @rawjson is meant for testing of the schema in the xml2argvtest
*/
char *
virQEMUBuildNetdevCommandlineFromJSON(virJSONValue *props,
bool rawjson)
{
const char *type = virJSONValueObjectGetString(props, "type");
g_auto(virBuffer) buf = VIR_BUFFER_INITIALIZER;
if (rawjson)
return virJSONValueToString(props, false);
virBufferAsprintf(&buf, "%s,", type);
if (virQEMUBuildCommandLineJSON(props, &buf, "type",
virQEMUBuildCommandLineJSONArrayObjectsStr) < 0)
return NULL;
return virBufferContentAndReset(&buf);
}
char *
virQEMUBuildDriveCommandlineFromJSON(virJSONValue *srcdef)
{

View File

@ -48,10 +48,6 @@ int virQEMUBuildCommandLineJSON(virJSONValue *value,
const char *skipKey,
virQEMUBuildCommandLineJSONArrayFormatFunc array);
char *
virQEMUBuildNetdevCommandlineFromJSON(virJSONValue *props,
bool rawjson);
char *virQEMUBuildDriveCommandlineFromJSON(virJSONValue *src);
void virQEMUBuildBufferEscapeComma(virBuffer *buf, const char *str);