From be041ae94d6cf84748f08e8d1fc961af12fb3630 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 15 Jan 2020 00:30:01 +0100 Subject: [PATCH] Removed some useless code (including a dead code block) in the 86F image creation code. --- src/win/win_new_floppy.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/win/win_new_floppy.c b/src/win/win_new_floppy.c index ab41d7df3..e773e54e2 100644 --- a/src/win/win_new_floppy.c +++ b/src/win/win_new_floppy.c @@ -80,7 +80,7 @@ create_86f(WCHAR *file_name, disk_size_t disk_size, uint8_t rpm_mode) uint16_t tflags = 0; uint32_t index_hole_pos = 0; uint32_t tarray[512]; - uint32_t array_size, array_size2; + uint32_t array_size; uint32_t track_base, track_size; int i; uint32_t shift = 0; @@ -133,11 +133,6 @@ create_86f(WCHAR *file_name, disk_size_t disk_size, uint8_t rpm_mode) break; } - array_size2 = (array_size << 3); - array_size = (array_size2 >> 4) << 1; - if (array_size2 & 15) - array_size += 2; - empty = (unsigned char *) malloc(array_size); memset(tarray, 0, 2048);