Skip to content

Commit

Permalink
Remove SCSIHD_NEC
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Nov 24, 2023
1 parent 6f708d2 commit 6df7654
Show file tree
Hide file tree
Showing 11 changed files with 79 additions and 700 deletions.
18 changes: 7 additions & 11 deletions cpp/devices/device_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "shared/piscsi_util.h"
#include "scsihd.h"
#include "scsihd_nec.h"
#include "scsimo.h"
#include "scsicd.h"
#include "scsi_printer.h"
Expand Down Expand Up @@ -46,16 +45,13 @@ shared_ptr<PrimaryDevice> DeviceFactory::CreateDevice(PbDeviceType type, int lun
shared_ptr<PrimaryDevice> device;
switch (type) {
case SCHD: {
if (const string ext = GetExtensionLowerCase(filename); ext == "hdn" || ext == "hdi" || ext == "nhd") {
device = make_shared<SCSIHD_NEC>(lun);
} else {
device = make_shared<SCSIHD>(lun, false, ext == "hd1" ? scsi_level::scsi_1_ccs : scsi_level::scsi_2);

// Some Apple tools require a particular drive identification
if (ext == "hda") {
device->SetVendor("QUANTUM");
device->SetProduct("FIREBALL");
}
const string ext = GetExtensionLowerCase(filename);
device = make_shared<SCSIHD>(lun, false, ext == "hd1" ? scsi_level::scsi_1_ccs : scsi_level::scsi_2);

// Some Apple tools require a particular drive identification
if (ext == "hda") {
device->SetVendor("QUANTUM");
device->SetProduct("FIREBALL");
}
break;
}
Expand Down
3 changes: 0 additions & 3 deletions cpp/devices/device_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ class DeviceFactory
{ "hd1", SCHD },
{ "hds", SCHD },
{ "hda", SCHD },
{ "hdn", SCHD },
{ "hdi", SCHD },
{ "nhd", SCHD },
{ "hdr", SCRM },
{ "mos", SCMO },
{ "is1", SCCD },
Expand Down
178 changes: 0 additions & 178 deletions cpp/devices/scsihd_nec.cpp

This file was deleted.

62 changes: 0 additions & 62 deletions cpp/devices/scsihd_nec.h

This file was deleted.

Loading

0 comments on commit 6df7654

Please sign in to comment.