mirror of
				https://github.com/davidgiven/fluxengine.git
				synced 2025-10-24 11:11:02 -07:00 
			
		
		
		
	Remove the rawReadDiskCommand() function, as it's no longer used.
This commit is contained in:
		| @@ -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"}); |  | ||||||
| } |  | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user