]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Monitor: Drop monitor_cmd_user_only()
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 16 Sep 2010 13:47:54 +0000 (10:47 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Fri, 1 Oct 2010 13:20:06 +0000 (10:20 -0300)
This function was only needed when QMP and HMP were sharing dispatch
tables, this is no longer true so just drop it.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
monitor.c
monitor.h

index b43277e580efcd60cf8c35e6c4429fec90c42283..8f902506920ee76b7f021e8dbe9b5fd611b971c4 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -340,11 +340,6 @@ static inline bool monitor_handler_is_async(const mon_cmd_t *cmd)
     return cmd->flags & MONITOR_CMD_ASYNC;
 }
 
-static inline bool monitor_cmd_user_only(const mon_cmd_t *cmd)
-{
-    return (cmd->flags & MONITOR_CMD_USER_ONLY);
-}
-
 static inline int monitor_has_error(const Monitor *mon)
 {
     return mon->error != NULL;
index f2122b5884577511edc4f41e7467abcc61a1ab2c..44c36258246c17fd448dd8b89fdefb64c764357d 100644 (file)
--- a/monitor.h
+++ b/monitor.h
@@ -18,7 +18,6 @@ extern Monitor *default_mon;
 
 /* flags for monitor commands */
 #define MONITOR_CMD_ASYNC       0x0001
-#define MONITOR_CMD_USER_ONLY   0x0002
 
 /* QMP events */
 typedef enum MonitorEvent {