From 9ad4531e1e00b996ba55de04d6ecfb4d02a9fd7c Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 21 Oct 2009 15:25:42 +0200 Subject: kill dead nic unplug code. Cleanup on unplug happens via qdev->exit() callback now. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/device-hotplug.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'hw/device-hotplug.c') diff --git a/hw/device-hotplug.c b/hw/device-hotplug.c index c0cfd31d4d..9cc8376691 100644 --- a/hw/device-hotplug.c +++ b/hw/device-hotplug.c @@ -46,19 +46,3 @@ DriveInfo *add_init_drive(const char *optstr) return dinfo; } - -void destroy_nic(dev_match_fn *match_fn, void *arg) -{ - int i; - NICInfo *nic; - - for (i = 0; i < MAX_NICS; i++) { - nic = &nd_table[i]; - if (nic->used) { - if (nic->private && match_fn(nic->private, arg)) { - qemu_del_vlan_client(nic->vc); - net_client_uninit(nic); - } - } - } -} -- cgit v1.2.1