REFACTOR: Removed unneeded value sets.

This commit is contained in:
2017-12-21 16:07:20 +00:00
parent 9883b567ff
commit bcbda18e4d
110 changed files with 203 additions and 280 deletions

View File

@@ -62,8 +62,8 @@ namespace DiscImageChef.Core.Devices.Dumping
{
MhddLog mhddLog;
IbgLog ibgLog;
bool sense = false;
ulong blocks = 0;
bool sense;
ulong blocks;
uint blockSize = 2048;
uint blocksToRead = 64;
ulong errored = 0;
@@ -75,7 +75,7 @@ namespace DiscImageChef.Core.Devices.Dumping
double maxSpeed = double.MinValue;
double minSpeed = double.MaxValue;
Checksum dataChk;
DataFile dumpFile = null;
DataFile dumpFile;
bool aborted = false;
System.Console.CancelKeyPress += (sender, e) => { e.Cancel = aborted = true; };
@@ -332,8 +332,6 @@ namespace DiscImageChef.Core.Devices.Dumping
start = DateTime.UtcNow;
readBuffer = null;
double cmdDuration = 0;
uint saveBlocksToRead = blocksToRead;
DumpHardwareType currentTry = null;
@@ -630,8 +628,6 @@ namespace DiscImageChef.Core.Devices.Dumping
break;
}
cmdDuration = 0;
DicConsole.Write("\rRetrying sector {0}, pass {1}, {3}{2}", badSector, pass + 1,
forward ? "forward" : "reverse",
runningPersistent ? "recovering partial data, " : "");
@@ -661,8 +657,8 @@ namespace DiscImageChef.Core.Devices.Dumping
Modes.DecodedMode? currentMode = null;
Modes.ModePage? currentModePage = null;
byte[] md6 = null;
byte[] md10 = null;
byte[] md6;
byte[] md10;
if(!runningPersistent && persistent)
{