[PATCH v2] qemu_agent: remove unused code