Patchwork [14/19] Monitor: Drop monitor_cmd_user_only()

login
register
mail settings
Submitter Luiz Capitulino
Date Sept. 30, 2010, 8:56 p.m.
Message ID <1285880180-29724-15-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/66260/
State New
Headers show

Comments

Luiz Capitulino - Sept. 30, 2010, 8:56 p.m.
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 |    5 -----
 monitor.h |    1 -
 2 files changed, 0 insertions(+), 6 deletions(-)

Patch

diff --git a/monitor.c b/monitor.c
index 572752d..5913c73 100644
--- 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;
diff --git a/monitor.h b/monitor.h
index 38b22a4..9582b9c 100644
--- a/monitor.h
+++ b/monitor.h
@@ -17,7 +17,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 {