From 30a8e248fbfa8421523b4c336823fe02e4e9ead9 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 14 Jan 2020 20:46:43 +0100 Subject: [PATCH] Removed a dead code block and redundant if check from the JSON floppy image code. --- src/floppy/fdd_json.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/floppy/fdd_json.c b/src/floppy/fdd_json.c index d194b811d..cfc0e43e3 100644 --- a/src/floppy/fdd_json.c +++ b/src/floppy/fdd_json.c @@ -438,13 +438,9 @@ json_seek(int drive, int track) pos = d86f_prepare_pretrack(drive, side, 0); for (sector=0; sectorspt[track][side]; sector++) { - if (interleave_type == 0) { - rsec = dev->sects[track][side][sector].sector; - asec = sector; - } else { - rsec = fdd_dmf_r[sector]; - asec = dev->interleave_ordered[rsec][side]; - } + rsec = dev->sects[track][side][sector].sector; + asec = sector; + id[0] = track; id[1] = side; id[2] = rsec;