[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH 4/8] monitor: Remove unused functions
From: |
Thomas Huth |
Subject: |
[Qemu-trivial] [PATCH 4/8] monitor: Remove unused functions |
Date: |
Mon, 9 Mar 2015 18:30:11 +0100 |
The functions ringbuf_read_completion() and monitor_get_rs()
are not used anywhere anymore, so let's remove them.
Signed-off-by: Thomas Huth <address@hidden>
Cc: Luiz Capitulino <address@hidden>
---
hmp.h | 1 -
include/monitor/monitor.h | 1 -
monitor.c | 13 -------------
3 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/hmp.h b/hmp.h
index 81177b2..0c96e9a 100644
--- a/hmp.h
+++ b/hmp.h
@@ -106,7 +106,6 @@ void set_link_completion(ReadLineState *rs, int nb_args,
const char *str);
void netdev_add_completion(ReadLineState *rs, int nb_args, const char *str);
void netdev_del_completion(ReadLineState *rs, int nb_args, const char *str);
void ringbuf_write_completion(ReadLineState *rs, int nb_args, const char *str);
-void ringbuf_read_completion(ReadLineState *rs, int nb_args, const char *str);
void watchdog_action_completion(ReadLineState *rs, int nb_args,
const char *str);
void migrate_set_capability_completion(ReadLineState *rs, int nb_args,
diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h
index 1c06bed..df67d56 100644
--- a/include/monitor/monitor.h
+++ b/include/monitor/monitor.h
@@ -47,7 +47,6 @@ typedef void (MonitorCompletion)(void *opaque, QObject
*ret_data);
void monitor_set_error(Monitor *mon, QError *qerror);
void monitor_read_command(Monitor *mon, int show_prompt);
-ReadLineState *monitor_get_rs(Monitor *mon);
int monitor_read_password(Monitor *mon, ReadLineFunc *readline_func,
void *opaque);
diff --git a/monitor.c b/monitor.c
index c86a89e..18d7f23 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4385,14 +4385,6 @@ static void ringbuf_completion(ReadLineState *rs, const
char *str)
qapi_free_ChardevInfoList(start);
}
-void ringbuf_read_completion(ReadLineState *rs, int nb_args, const char *str)
-{
- if (nb_args != 2) {
- return;
- }
- ringbuf_completion(rs, str);
-}
-
void ringbuf_write_completion(ReadLineState *rs, int nb_args, const char *str)
{
if (nb_args != 2) {
@@ -5370,11 +5362,6 @@ static void bdrv_password_cb(void *opaque, const char
*password,
monitor_read_command(mon, 1);
}
-ReadLineState *monitor_get_rs(Monitor *mon)
-{
- return mon->rs;
-}
-
int monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs,
BlockCompletionFunc *completion_cb,
void *opaque)
--
1.7.1
- [Qemu-trivial] [PATCH 0/8] Remove more unused functions, Thomas Huth, 2015/03/09
- [Qemu-trivial] [PATCH 4/8] monitor: Remove unused functions,
Thomas Huth <=
- [Qemu-trivial] [PATCH 6/8] usb: Remove unused functions, Thomas Huth, 2015/03/09
- [Qemu-trivial] [PATCH 2/8] vmxnet: Remove unused function vmxnet_rx_pkt_get_num_frags(), Thomas Huth, 2015/03/09
- [Qemu-trivial] [PATCH 7/8] util: Remove unused functions, Thomas Huth, 2015/03/09
- [Qemu-trivial] [PATCH 5/8] ioport: Remove unused functions, Thomas Huth, 2015/03/09
- [Qemu-trivial] [PATCH 3/8] pci: Remove unused functions, Thomas Huth, 2015/03/09