From aa7d5d2dc2c4cd7b58dfdf1d478c176a63f41f0d Mon Sep 17 00:00:00 2001 From: Akamaki <97360908+akmed772@users.noreply.github.com> Date: Sat, 15 Feb 2025 11:49:26 +0900 Subject: [PATCH] removed unused device decl --- src/floppy/fdc.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/floppy/fdc.c b/src/floppy/fdc.c index 75c2c10af..243df4ca5 100644 --- a/src/floppy/fdc.c +++ b/src/floppy/fdc.c @@ -722,7 +722,7 @@ fdc_write(uint16_t addr, uint8_t val, void *priv) if ((val & 4) && !(fdc->dor & 4)) fdc_soft_reset(fdc); /* We can now simplify this since each motor now spins separately. */ - for (int i = 0; i < FDD_NUM; i++) { + for (i = 0; i < FDD_NUM; i++) { drive_num = real_drive(fdc, i); if ((!fdd_get_flags(drive_num)) || (drive_num >= FDD_NUM)) val &= ~(0x10 << drive_num); @@ -2612,20 +2612,6 @@ const device_t fdc_at_actlow_device = { .config = NULL }; -const device_t fdc_at_ps2_device = { - .name = "PC/AT Floppy Drive Controller (PS/2 internal)", - .internal_name = "fdc_at_ps55", - .flags = 0, - .local = FDC_FLAG_AT | FDC_FLAG_PS2, - .init = fdc_init, - .close = fdc_close, - .reset = fdc_reset, - {.available = NULL }, - .speed_changed = NULL, - .force_redraw = NULL, - .config = NULL -}; - const device_t fdc_at_smc_device = { .name = "PC/AT Floppy Drive Controller (SM(s)C FDC37Cxxx)", .internal_name = "fdc_at_smc",