Removed unused code.

This commit is contained in:
2017-05-28 01:20:54 +01:00
parent af05401220
commit 80b5cc95e9
2 changed files with 4 additions and 59 deletions

View File

@@ -1,3 +1,7 @@
2017-05-28 Natalia Portillo <claunia@claunia.com>
* ATA.cs: Removed unused code.
2017-05-28 Natalia Portillo <claunia@claunia.com> 2017-05-28 Natalia Portillo <claunia@claunia.com>
* ATA.cs: * ATA.cs:

View File

@@ -341,13 +341,6 @@ namespace DiscImageChef.Core.Devices.Dumping
return; return;
} }
ulong A = 0; // <3ms
ulong B = 0; // >=3ms, <10ms
ulong C = 0; // >=10ms, <50ms
ulong D = 0; // >=50ms, <150ms
ulong E = 0; // >=150ms, <500ms
ulong F = 0; // >=500ms
ulong errored = 0;
DateTime start; DateTime start;
DateTime end; DateTime end;
double totalDuration = 0; double totalDuration = 0;
@@ -442,31 +435,6 @@ namespace DiscImageChef.Core.Devices.Dumping
if(!error) if(!error)
{ {
if(cmdDuration >= 500)
{
F += blocksToRead;
}
else if(cmdDuration >= 150)
{
E += blocksToRead;
}
else if(cmdDuration >= 50)
{
D += blocksToRead;
}
else if(cmdDuration >= 10)
{
C += blocksToRead;
}
else if(cmdDuration >= 3)
{
B += blocksToRead;
}
else
{
A += blocksToRead;
}
mhddLog.Write(i, cmdDuration); mhddLog.Write(i, cmdDuration);
ibgLog.Write(i, currentSpeed * 1024); ibgLog.Write(i, currentSpeed * 1024);
dumpFile.Write(cmdBuf); dumpFile.Write(cmdBuf);
@@ -474,7 +442,6 @@ namespace DiscImageChef.Core.Devices.Dumping
else else
{ {
DicConsole.DebugWriteLine("Media-Scan", "ATA ERROR: {0} STATUS: {1}", errorByte, status); DicConsole.DebugWriteLine("Media-Scan", "ATA ERROR: {0} STATUS: {1}", errorByte, status);
errored += blocksToRead;
unreadableSectors.Add(i); unreadableSectors.Add(i);
if(cmdDuration < 500) if(cmdDuration < 500)
mhddLog.Write(i, 65535); mhddLog.Write(i, 65535);
@@ -647,31 +614,6 @@ namespace DiscImageChef.Core.Devices.Dumping
if(!error) if(!error)
{ {
if(cmdDuration >= 500)
{
F += blocksToRead;
}
else if(cmdDuration >= 150)
{
E += blocksToRead;
}
else if(cmdDuration >= 50)
{
D += blocksToRead;
}
else if(cmdDuration >= 10)
{
C += blocksToRead;
}
else if(cmdDuration >= 3)
{
B += blocksToRead;
}
else
{
A += blocksToRead;
}
mhddLog.Write(currentBlock, cmdDuration); mhddLog.Write(currentBlock, cmdDuration);
ibgLog.Write(currentBlock, currentSpeed * 1024); ibgLog.Write(currentBlock, currentSpeed * 1024);
dumpFile.Write(cmdBuf); dumpFile.Write(cmdBuf);
@@ -679,7 +621,6 @@ namespace DiscImageChef.Core.Devices.Dumping
else else
{ {
DicConsole.DebugWriteLine("Media-Scan", "ATA ERROR: {0} STATUS: {1}", errorByte, status); DicConsole.DebugWriteLine("Media-Scan", "ATA ERROR: {0} STATUS: {1}", errorByte, status);
errored += blocksToRead;
unreadableSectors.Add(currentBlock); unreadableSectors.Add(currentBlock);
if(cmdDuration < 500) if(cmdDuration < 500)
mhddLog.Write(currentBlock, 65535); mhddLog.Write(currentBlock, 65535);