aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2015-09-04 15:37:09 -0300
committerAndreas Färber <afaerber@suse.de>2015-09-19 16:40:30 +0200
commit3b53e45f43825caaaf4fad6a5b85ce6a9949ff02 (patch)
treece530f23d339d9c907cf50aeb02a3413b026b9c4 /vl.c
parent8a661aea0e7f6e776c6ebc9abe339a85b34fea1d (diff)
downloadqemu-3b53e45f43825caaaf4fad6a5b85ce6a9949ff02.zip
qemu-3b53e45f43825caaaf4fad6a5b85ce6a9949ff02.tar.gz
qemu-3b53e45f43825caaaf4fad6a5b85ce6a9949ff02.tar.bz2
machine: Eliminate QEMUMachine and qemu_register_machine()
The struct is not used anymore and can be eliminated. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/vl.c b/vl.c
index 3b92635..e211f6a 100644
--- a/vl.c
+++ b/vl.c
@@ -1429,42 +1429,6 @@ void hmp_usb_del(Monitor *mon, const QDict *qdict)
MachineState *current_machine;
-/*
- * Transitional class registration/init used for converting from
- * legacy QEMUMachine to MachineClass.
- */
-static void qemu_machine_class_init(ObjectClass *oc, void *data)
-{
- MachineClass *mc = MACHINE_CLASS(oc);
- QEMUMachine *qm = data;
- mc->desc = qm->desc;
- mc->init = qm->init;
- mc->kvm_type = qm->kvm_type;
- mc->block_default_type = qm->block_default_type;
- mc->max_cpus = qm->max_cpus;
- mc->no_sdcard = qm->no_sdcard;
- mc->has_dynamic_sysbus = qm->has_dynamic_sysbus;
- mc->is_default = qm->is_default;
- mc->default_machine_opts = qm->default_machine_opts;
- mc->default_boot_order = qm->default_boot_order;
-}
-
-int qemu_register_machine(QEMUMachine *m)
-{
- char *name = g_strdup_printf(MACHINE_TYPE_NAME("%s"), m->name);
- TypeInfo ti = {
- .name = name,
- .parent = TYPE_MACHINE,
- .class_init = qemu_machine_class_init,
- .class_data = (void *)m,
- };
-
- type_register(&ti);
- g_free(name);
-
- return 0;
-}
-
static MachineClass *find_machine(const char *name)
{
GSList *el, *machines = object_class_get_list(TYPE_MACHINE, false);