mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
monitor: Remove unused functions
The functions ringbuf_read_completion() and monitor_get_rs() are not used anywhere anymore, so let's remove them. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com> Cc: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
04768b985e
commit
26b93109c0
1
hmp.h
1
hmp.h
@ -109,7 +109,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,
|
||||
|
@ -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);
|
||||
|
||||
|
13
monitor.c
13
monitor.c
@ -4390,14 +4390,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) {
|
||||
@ -5392,11 +5384,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)
|
||||
|
Loading…
Reference in New Issue
Block a user