Remove the rawReadDiskCommand() function, as it's no longer used.

This commit is contained in:
David Given
2025-08-21 19:00:29 +02:00
parent d91fed7dd4
commit 1def87fdc3
2 changed files with 0 additions and 36 deletions

View File

@@ -741,38 +741,3 @@ void readDiskCommand(
*diskflux->image, globalConfig()->decoder().write_csv_to()); *diskflux->image, globalConfig()->decoder().write_csv_to());
writer.writeImage(*diskflux->image); writer.writeImage(*diskflux->image);
} }
void rawReadDiskCommand(FluxSource& fluxsource, FluxSink& fluxsink)
{
log(BeginOperationLogMessage{"Performing raw read of disk"});
if (fluxsource.isHardware() || fluxsink.isHardware())
measureDiskRotation();
auto physicalLocations = Layout::computePhysicalLocations();
unsigned index = 0;
for (const auto& physicalLocation : physicalLocations)
{
log(OperationProgressLogMessage{
index * 100 / (int)physicalLocations.size()});
index++;
testForEmergencyStop();
auto trackInfo = Layout::getLayoutOfTrackPhysical(
physicalLocation.cylinder, physicalLocation.head);
auto fluxSourceIterator = fluxsource.readFlux(
trackInfo->physicalTrack, trackInfo->physicalSide);
log(BeginReadOperationLogMessage{
trackInfo->physicalTrack, trackInfo->physicalSide});
auto fluxmap = fluxSourceIterator->next();
log(EndReadOperationLogMessage());
log("{0} ms in {1} bytes",
(int)(fluxmap->duration() / 1e6),
fluxmap->bytes());
fluxsink.writeFlux(
trackInfo->physicalTrack, trackInfo->physicalSide, *fluxmap);
}
log(EndOperationLogMessage{"Raw read complete"});
}

View File

@@ -111,6 +111,5 @@ extern std::shared_ptr<const DiskFlux> readDiskCommand(
FluxSource& fluxsource, Decoder& decoder); FluxSource& fluxsource, Decoder& decoder);
extern void readDiskCommand( extern void readDiskCommand(
FluxSource& source, Decoder& decoder, ImageWriter& writer); FluxSource& source, Decoder& decoder, ImageWriter& writer);
extern void rawReadDiskCommand(FluxSource& source, FluxSink& sink);
#endif #endif