From a5ac8c824e891000eafbdb6ac35a221d6d529a90 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 7 Jan 2018 21:59:59 -0500 Subject: [PATCH] Removes logging and unnecessary `get_drive_is_ready`. --- Machines/MSX/DiskROM.cpp | 8 -------- Machines/MSX/DiskROM.hpp | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Machines/MSX/DiskROM.cpp b/Machines/MSX/DiskROM.cpp index 9b90433f2..4382768f4 100644 --- a/Machines/MSX/DiskROM.cpp +++ b/Machines/MSX/DiskROM.cpp @@ -25,7 +25,6 @@ void DiskROM::write(uint16_t address, uint8_t value) { selected_head_ = value & 1; if(drives_[0]) drives_[0]->set_head(selected_head_); if(drives_[1]) drives_[1]->set_head(selected_head_); - printf("HEAD: %d\n", selected_head_); break; case 0x7ffd: { selected_drive_ = value & 1; @@ -34,8 +33,6 @@ void DiskROM::write(uint16_t address, uint8_t value) { bool drive_motor = !!(value & 0x80); if(drives_[0]) drives_[0]->set_motor_on(drive_motor); if(drives_[1]) drives_[1]->set_motor_on(drive_motor); - printf("DRIVE: %d\n", selected_head_); - printf("MOTOR ON: %s\n", (value & 0x80) ? "on" : "off"); } break; } } @@ -60,7 +57,6 @@ void DiskROM::run_for(HalfCycles half_cycles) { } void DiskROM::set_disk(std::shared_ptr disk, int drive) { - printf("Disk to %d\n", drive); if(!drives_[drive]) { drives_[drive].reset(new Storage::Disk::Drive(8000000, 300, 2)); drives_[drive]->set_head(selected_head_); @@ -73,7 +69,3 @@ void DiskROM::set_head_load_request(bool head_load) { // Magic! set_head_loaded(head_load); } - -bool DiskROM::get_drive_is_ready() { - return true; -} diff --git a/Machines/MSX/DiskROM.hpp b/Machines/MSX/DiskROM.hpp index fcdeac05c..b7cce1c1d 100644 --- a/Machines/MSX/DiskROM.hpp +++ b/Machines/MSX/DiskROM.hpp @@ -36,8 +36,7 @@ class DiskROM: public ROMSlotHandler, public WD::WD1770 { int selected_head_ = 0; std::shared_ptr drives_[4]; - void set_head_load_request(bool head_load); - bool get_drive_is_ready(); + void set_head_load_request(bool head_load) override; }; }