mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
monitor: drop unused monitor_is_qmp method
The previous patch dropped the only remaining use of monitor_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-22-berrange@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
committed by
Markus Armbruster
parent
ffe38695f0
commit
eae3e17524
@@ -134,7 +134,6 @@ struct Monitor {
|
||||
char *chardev_id;
|
||||
CharFrontend chr;
|
||||
int suspend_cnt; /* Needs to be accessed atomically */
|
||||
bool is_qmp;
|
||||
|
||||
char *mon_cpu_path;
|
||||
QTAILQ_ENTRY(Monitor) entry;
|
||||
@@ -197,14 +196,6 @@ struct MonitorQMP {
|
||||
GQueue *qmp_requests;
|
||||
};
|
||||
|
||||
/**
|
||||
* Is @mon a QMP monitor?
|
||||
*/
|
||||
static inline bool monitor_is_qmp(const Monitor *mon)
|
||||
{
|
||||
return mon->is_qmp;
|
||||
}
|
||||
|
||||
typedef QTAILQ_HEAD(MonitorList, Monitor) MonitorList;
|
||||
extern IOThread *mon_iothread;
|
||||
extern Coroutine *qmp_dispatcher_co;
|
||||
|
||||
@@ -115,7 +115,6 @@ static void monitor_init(Object *obj)
|
||||
Monitor *mon = MONITOR(obj);
|
||||
|
||||
qemu_mutex_init(&mon->mon_lock);
|
||||
mon->is_qmp = !!object_dynamic_cast(obj, TYPE_MONITOR_QMP);
|
||||
mon->outbuf = g_string_new(NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user