From 1def87fdc361d23e5651d3deab96b5cddc507b47 Mon Sep 17 00:00:00 2001 From: David Given Date: Thu, 21 Aug 2025 19:00:29 +0200 Subject: [PATCH] Remove the rawReadDiskCommand() function, as it's no longer used. --- lib/algorithms/readerwriter.cc | 35 ---------------------------------- lib/algorithms/readerwriter.h | 1 - 2 files changed, 36 deletions(-) diff --git a/lib/algorithms/readerwriter.cc b/lib/algorithms/readerwriter.cc index 389f464a..51f6acc7 100644 --- a/lib/algorithms/readerwriter.cc +++ b/lib/algorithms/readerwriter.cc @@ -741,38 +741,3 @@ void readDiskCommand( *diskflux->image, globalConfig()->decoder().write_csv_to()); 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"}); -} diff --git a/lib/algorithms/readerwriter.h b/lib/algorithms/readerwriter.h index 93f35090..10360d2d 100644 --- a/lib/algorithms/readerwriter.h +++ b/lib/algorithms/readerwriter.h @@ -111,6 +111,5 @@ extern std::shared_ptr readDiskCommand( FluxSource& fluxsource, Decoder& decoder); extern void readDiskCommand( FluxSource& source, Decoder& decoder, ImageWriter& writer); -extern void rawReadDiskCommand(FluxSource& source, FluxSink& sink); #endif