Here are some more patches to remove completely unused functions from QEMU. Please review carefully, some of the functions might still get usefull in the future again, so if you discover one, please let me know, then I'll remove it from the patch series again.
v2: Changed series according to review comment from v1: - Dropped the patch to remove portio_list_destroy() and portio_list_del() - Keep the ARI functions in the pci patch since they might get useful again Thomas Huth (7): migration: Remove unused functions vmxnet: Remove unused function vmxnet_rx_pkt_get_num_frags() pci: Remove unused function ich9_d2pbr_init() monitor: Remove unused functions usb: Remove unused functions util: Remove unused functions Remove various unused functions backends/tpm.c | 11 ------ hmp.h | 1 - hw/char/serial.c | 7 ---- hw/net/vmxnet_rx_pkt.c | 7 ---- hw/net/vmxnet_rx_pkt.h | 9 ----- hw/pci-bridge/i82801b11.c | 21 ------------ hw/usb/core.c | 41 ----------------------- include/hw/char/serial.h | 1 - include/hw/i386/ich9.h | 1 - include/hw/usb.h | 5 --- include/migration/migration.h | 1 - include/migration/qemu-file.h | 2 - include/monitor/monitor.h | 1 - include/qemu-common.h | 4 -- include/qemu/compatfd.h | 1 - include/sysemu/iothread.h | 1 - include/sysemu/tpm_backend_int.h | 2 - iothread.c | 12 ------- migration/migration.c | 9 ----- migration/qemu-file-buf.c | 53 ------------------------------ monitor.c | 13 ------- util/compatfd.c | 19 ----------- util/osdep.c | 66 -------------------------------------- 23 files changed, 0 insertions(+), 288 deletions(-)