Skip to content

Commit

Permalink
stubs: remove obsolete stubs
Browse files Browse the repository at this point in the history
These file define functions are are not called from common code
anymore.  Delete those functions and, if applicable, the entire files.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20240408155330.522792-10-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Apr 18, 2024
1 parent 6862126 commit d4d0ebb
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 48 deletions.
2 changes: 0 additions & 2 deletions include/sysemu/sysemu.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ Chardev *serial_hd(int i);

extern Chardev *parallel_hds[MAX_PARALLEL_PORTS];

void hmp_info_usb(Monitor *mon, const QDict *qdict);

void add_boot_device_path(int32_t bootindex, DeviceState *dev,
const char *suffix);
char *get_boot_devices_list(size_t *size);
Expand Down
7 changes: 0 additions & 7 deletions stubs/isa-bus.c

This file was deleted.

3 changes: 0 additions & 3 deletions stubs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ stub_ss.add(files('iothread-lock.c'))
if have_block
stub_ss.add(files('iothread-lock-block.c'))
endif
stub_ss.add(files('isa-bus.c'))
stub_ss.add(files('is-daemonized.c'))
if libaio.found()
stub_ss.add(files('linux-aio.c'))
endif
stub_ss.add(files('migr-blocker.c'))
stub_ss.add(files('module-opts.c'))
stub_ss.add(files('monitor.c'))
stub_ss.add(files('monitor-core.c'))
stub_ss.add(files('physmem.c'))
Expand Down Expand Up @@ -57,7 +55,6 @@ if have_block or have_ga
endif
if have_system
stub_ss.add(files('fw_cfg.c'))
stub_ss.add(files('pci-bus.c'))
stub_ss.add(files('semihost.c'))
stub_ss.add(files('usb-dev-stub.c'))
stub_ss.add(files('xen-hw-stub.c'))
Expand Down
2 changes: 0 additions & 2 deletions stubs/module-opts.c

This file was deleted.

6 changes: 0 additions & 6 deletions stubs/monitor-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ Monitor *monitor_set_cur(Coroutine *co, Monitor *mon)
return NULL;
}

void monitor_init_qmp(Chardev *chr, bool pretty, Error **errp)
{
}

void qapi_event_emit(QAPIEvent event, QDict *qdict)
{
}
Expand All @@ -24,5 +20,3 @@ int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
{
abort();
}


7 changes: 0 additions & 7 deletions stubs/pci-bus.c

This file was deleted.

6 changes: 0 additions & 6 deletions stubs/qdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,3 @@ void qapi_event_send_device_deleted(const char *device,
{
/* Nothing to do. */
}

void qapi_event_send_device_unplug_guest_error(const char *device,
const char *path)
{
/* Nothing to do. */
}
10 changes: 0 additions & 10 deletions stubs/qtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,3 @@

/* Needed for qtest_allowed() */
bool qtest_allowed;

bool qtest_driver(void)
{
return false;
}

int64_t qtest_get_virtual_clock(void)
{
return 0;
}
5 changes: 0 additions & 5 deletions stubs/usb-dev-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,3 @@ HumanReadableText *qmp_x_query_usb(Error **errp)
error_setg(errp, "Support for USB devices not built-in");
return NULL;
}

void hmp_info_usb(Monitor *mon, const QDict *qdict)
{
monitor_printf(mon, "Support for USB devices not built-in\n");
}

0 comments on commit d4d0ebb

Please sign in to comment.