There are quite a lot of completely unused functions scattered around in the QEMU sources - here are some patches to remove at least some of them.
v2: - Incorporated review feedback to keep the functions that still might be usefull (e.g. dropped the patch to remove unused functions in the block layer) - Added a patch to remove xen_cmos_set_s3_resume() Thomas Huth (5): migration: Remove unused functions ui: Removed unused functions ui/vnc: Remove vnc_stop_worker_thread() util: Remove unused functions xen: Remove xen_cmos_set_s3_resume() arch_init.c | 10 ------ include/hw/xen/xen.h | 1 - include/migration/migration.h | 3 -- include/migration/qemu-file.h | 2 - include/qemu-common.h | 4 -- include/qemu/compatfd.h | 1 - include/ui/console.h | 3 -- migration/migration.c | 9 ----- migration/qemu-file-buf.c | 53 --------------------------------- ui/console.c | 12 ------- ui/d3des.c | 9 ----- ui/d3des.h | 6 ---- ui/input-legacy.c | 6 ---- ui/vnc-jobs.c | 13 -------- ui/vnc-jobs.h | 1 - util/compatfd.c | 19 ------------ util/osdep.c | 66 ----------------------------------------- xen-hvm-stub.c | 4 -- 18 files changed, 0 insertions(+), 222 deletions(-)