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

@@ -81,7 +81,7 @@ namespace DiscImageChef.Decoders.MMC
if(response.Length != 4) return null;
byte[] data = new byte[16];
byte[] tmp = new byte[4];
byte[] tmp;
tmp = BitConverter.GetBytes(response[0]);
Array.Copy(tmp, 0, data, 0, 4);
@@ -146,7 +146,7 @@ namespace DiscImageChef.Decoders.MMC
double unitFactor = 0;
double multiplier = 0;
double result = 0;
double result;
string unit = "";
StringBuilder sb = new StringBuilder();
@@ -483,6 +483,7 @@ namespace DiscImageChef.Decoders.MMC
if(csd.WriteProtectGroupEnable)
{
sb.AppendLine("\tDevice can write protect regions");
// TODO: Check specification
unitFactor = Convert.ToDouble(csd.WriteProtectGroupSize);
sb.AppendFormat("\tDevice can write protect a minimum of {0} blocks at a time", (int)(result + 1))
.AppendLine();