Removed the last remnants of device_t.poll().

This commit is contained in:
OBattler
2025-02-13 01:06:40 +01:00
parent 8ffdff2bd4
commit 30ca057519
3 changed files with 1 additions and 18 deletions

View File

@@ -484,21 +484,6 @@ device_has_config(const device_t *dev)
return (c > 0) ? 1 : 0;
}
int
device_poll(const device_t *dev)
{
for (uint16_t c = 0; c < DEVICE_MAX; c++) {
if (devices[c] != NULL) {
if (devices[c] == dev) {
if (devices[c]->poll)
return (devices[c]->poll(device_priv[c]));
}
}
}
return 0;
}
void
device_get_name(const device_t *dev, int bus, char *name)
{

View File

@@ -2221,7 +2221,7 @@ const device_t keyboard_at_generic_device = {
.init = keyboard_at_init,
.close = keyboard_at_close,
.reset = NULL,
.poll = NULL,
.available = NULL,
.speed_changed = NULL,
.force_redraw = NULL,
.config = keyboard_at_config

View File

@@ -166,7 +166,6 @@ typedef struct _device_ {
void (*close)(void *priv);
void (*reset)(void *priv);
int (*available)(void);
int (*poll)(void *priv);
void (*speed_changed)(void *priv);
void (*force_redraw)(void *priv);
@@ -203,7 +202,6 @@ extern void device_reset_all(uint32_t match_flags);
extern void *device_find_first_priv(uint32_t match_flags);
extern void *device_get_priv(const device_t *dev);
extern int device_available(const device_t *dev);
extern int device_poll(const device_t *dev);
extern void device_speed_changed(void);
extern void device_force_redraw(void);
extern void device_get_name(const device_t *dev, int bus, char *name);