hw: remove SET_MACHINE_COMPAT

No longer needed.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
Marc-André Lureau 2018-11-26 22:25:57 +04:00
parent 88cbe07374
commit 638b47412b

View File

@ -288,16 +288,4 @@ struct MachineState {
} \
type_init(machine_initfn##_register_types)
#define SET_MACHINE_COMPAT(m, compat) \
do { \
int i; \
if (!m->compat_props) { \
m->compat_props = g_array_new(false, false, sizeof(void *)); \
} \
for (i = 0; i < G_N_ELEMENTS(compat); i++) { \
GlobalProperty *prop = &compat[i]; \
g_array_append_val(m->compat_props, prop); \
} \
} while (0)
#endif