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.
Thomas Huth (4): migration: Remove unused functions ui/console: Removed unused functions util: Remove unused functions block: Remove unused functions arch_init.c | 10 ---- block.c | 11 ---- include/block/block.h | 1 - include/block/nbd.h | 1 - include/migration/migration.h | 3 - include/migration/qemu-file.h | 2 - include/qemu-common.h | 4 -- include/qemu/compatfd.h | 1 - include/qemu/option.h | 2 - include/ui/console.h | 11 ---- include/ui/input.h | 1 - include/ui/qemu-pixman.h | 3 - migration/migration.c | 9 ---- migration/qemu-file-buf.c | 53 --------------------- nbd.c | 9 ---- ui/console.c | 103 ----------------------------------------- ui/d3des.c | 9 ---- ui/d3des.h | 6 -- ui/input-legacy.c | 6 -- ui/input.c | 7 --- ui/qemu-pixman.c | 19 -------- ui/vnc-jobs.c | 13 ----- ui/vnc-jobs.h | 1 - util/compatfd.c | 19 -------- util/osdep.c | 66 -------------------------- util/qemu-option.c | 6 -- 26 files changed, 0 insertions(+), 376 deletions(-)