it has no users. Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> --- include/hw/qdev-core.h | 2 -- hw/core/qdev.c | 9 --------- 2 files changed, 11 deletions(-)
diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h index de063b232f..de7fe2e6e0 100644 --- a/include/hw/qdev-core.h +++ b/include/hw/qdev-core.h @@ -30,7 +30,6 @@ typedef enum DeviceCategory { DEVICE_CATEGORY_MAX } DeviceCategory; -typedef int (*qdev_event)(DeviceState *dev); typedef void (*qdev_resetfn)(DeviceState *dev); typedef void (*DeviceRealize)(DeviceState *dev, Error **errp); typedef void (*DeviceUnrealize)(DeviceState *dev, Error **errp); @@ -124,7 +123,6 @@ typedef struct DeviceClass { const struct VMStateDescription *vmsd; /* Private to qdev / bus. */ - qdev_event exit; /* TODO remove, once users are converted to unrealize */ const char *bus_type; } DeviceClass; diff --git a/hw/core/qdev.c b/hw/core/qdev.c index a4f76c8f5d..985f890a74 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -225,15 +225,6 @@ static void device_realize(DeviceState *dev, Error **errp) static void device_unrealize(DeviceState *dev, Error **errp) { - DeviceClass *dc = DEVICE_GET_CLASS(dev); - - if (dc->exit) { - int rc = dc->exit(dev); - if (rc < 0) { - error_setg(errp, "Device exit failed."); - return; - } - } } void qdev_set_legacy_instance_id(DeviceState *dev, int alias_id, -- 2.15.1