mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu_agent: remove unused code
This section of code was left unused ever since it was introduced ten years ago. I think we can safely remove it. Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5a76801251
commit
d7547dbcf3
@ -60,17 +60,6 @@ VIR_LOG_INIT("qemu.qemu_agent");
|
|||||||
*/
|
*/
|
||||||
#define QEMU_AGENT_MAX_RESPONSE (10 * 1024 * 1024)
|
#define QEMU_AGENT_MAX_RESPONSE (10 * 1024 * 1024)
|
||||||
|
|
||||||
/* When you are the first to uncomment this,
|
|
||||||
* don't forget to uncomment the corresponding
|
|
||||||
* part in qemuAgentIOProcessEvent as well.
|
|
||||||
*
|
|
||||||
static struct {
|
|
||||||
const char *type;
|
|
||||||
void (*handler)(qemuAgent *agent, virJSONValue *data);
|
|
||||||
} eventHandlers[] = {
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
typedef struct _qemuAgentMessage qemuAgentMessage;
|
typedef struct _qemuAgentMessage qemuAgentMessage;
|
||||||
struct _qemuAgentMessage {
|
struct _qemuAgentMessage {
|
||||||
char *txBuffer;
|
char *txBuffer;
|
||||||
@ -237,17 +226,6 @@ qemuAgentIOProcessEvent(qemuAgent *agent,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
for (i = 0; i < G_N_ELEMENTS(eventHandlers); i++) {
|
|
||||||
if (STREQ(eventHandlers[i].type, type)) {
|
|
||||||
virJSONValue *data = virJSONValueObjectGet(obj, "data");
|
|
||||||
VIR_DEBUG("handle %s handler=%p data=%p", type,
|
|
||||||
eventHandlers[i].handler, data);
|
|
||||||
(eventHandlers[i].handler)(agent, data);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user