mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:17 +00:00
monitor: drop unused monitor_cur_is_qmp
The previous patch dropped the only remaining use of monitor_cur_is_qmp. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Tested-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20260706135824.2623960-19-berrange@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
committed by
Markus Armbruster
parent
972ca7f60f
commit
28eb8ea2ef
@@ -25,7 +25,6 @@ extern QemuOptsList qemu_mon_opts;
|
||||
|
||||
Monitor *monitor_cur(void);
|
||||
Monitor *monitor_set_cur(Coroutine *co, Monitor *mon);
|
||||
bool monitor_cur_is_qmp(void);
|
||||
|
||||
void monitor_init_globals(void);
|
||||
void monitor_init_globals_core(void);
|
||||
|
||||
@@ -152,16 +152,6 @@ Monitor *monitor_set_cur(Coroutine *co, Monitor *mon)
|
||||
return old_monitor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is the current monitor, if any, a QMP monitor?
|
||||
*/
|
||||
bool monitor_cur_is_qmp(void)
|
||||
{
|
||||
Monitor *cur_mon = monitor_cur();
|
||||
|
||||
return cur_mon && monitor_is_qmp(cur_mon);
|
||||
}
|
||||
|
||||
bool monitor_requires_iothread(const Monitor *mon)
|
||||
{
|
||||
MonitorClass *cls = MONITOR_GET_CLASS(mon);
|
||||
|
||||
@@ -7,11 +7,6 @@ Monitor *monitor_cur(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool monitor_cur_is_qmp(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Monitor *monitor_set_cur(Coroutine *co, Monitor *mon)
|
||||
{
|
||||
return NULL;
|
||||
|
||||
@@ -74,7 +74,6 @@ int monitor_get_fd(Monitor *mon, const char *fdname, Error **errp)
|
||||
Monitor *monitor_cur(void) { return cur_mon; }
|
||||
Monitor *monitor_set_cur(Coroutine *co, Monitor *mon) { abort(); }
|
||||
int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap) { abort(); }
|
||||
bool monitor_cur_is_qmp(void) { abort(); };
|
||||
|
||||
#ifndef _WIN32
|
||||
static void test_socket_fd_pass_name_good(void)
|
||||
|
||||
@@ -36,11 +36,6 @@ Monitor *monitor_cur(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool monitor_cur_is_qmp(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Monitor *monitor_set_cur(Coroutine *co, Monitor *mon)
|
||||
{
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user