diff options
author | Marc-André Lureau | 2018-12-04 15:20:10 +0100 |
---|---|---|
committer | Eduardo Habkost | 2018-12-11 18:45:23 +0100 |
commit | 37fdb2c56c603378b85466d1dd64fb4c95f9deb7 (patch) | |
tree | 895fb16200505026e015e6d7ec2643ca6d67fc21 /hw/core/machine.c | |
parent | qdev: move qdev_prop_register_global_list() to tests (diff) | |
download | qemu-37fdb2c56c603378b85466d1dd64fb4c95f9deb7.tar.gz qemu-37fdb2c56c603378b85466d1dd64fb4c95f9deb7.tar.xz qemu-37fdb2c56c603378b85466d1dd64fb4c95f9deb7.zip |
qom: remove unimplemented class_finalize
Instead of trying to implement something that isn't well specified,
remove it. (it would be tricky to implement, since a class struct is
memcpy on children types...)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20181204142023.15982-7-marcandre.lureau@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/core/machine.c')
-rw-r--r-- | hw/core/machine.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c index da50ad6de7..c51423b647 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -834,16 +834,6 @@ void machine_run_board_init(MachineState *machine) machine_class->init(machine); } -static void machine_class_finalize(ObjectClass *klass, void *data) -{ - MachineClass *mc = MACHINE_CLASS(klass); - - if (mc->compat_props) { - g_array_free(mc->compat_props, true); - } - g_free(mc->name); -} - void machine_register_compat_props(MachineState *machine) { MachineClass *mc = MACHINE_GET_CLASS(machine); @@ -869,7 +859,6 @@ static const TypeInfo machine_info = { .class_size = sizeof(MachineClass), .class_init = machine_class_init, .class_base_init = machine_class_base_init, - .class_finalize = machine_class_finalize, .instance_size = sizeof(MachineState), .instance_init = machine_initfn, .instance_finalize = machine_finalize, |