hw: remove SET_MACHINE_COMPAT
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 26 Nov 2018 18:25:57 +0000 (22:25 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 7 Jan 2019 12:18:41 +0000 (16:18 +0400)
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>
include/hw/boards.h

index f14c38bb63138e11f479e2711bf0ab73d66d2494..0566742412ac0f8f3aaaae43e70fb0bc7b243dcb 100644 (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