mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: Remove unneeded code.
This commit is contained in:
@@ -35,6 +35,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using DiscImageChef.Decoders.ATA;
|
||||
|
||||
namespace DiscImageChef.Decoders.SCSI
|
||||
{
|
||||
@@ -1249,7 +1250,7 @@ namespace DiscImageChef.Decoders.SCSI
|
||||
sb.AppendLine("Logical unit supports types 1, 2 and 3 protection");
|
||||
break;
|
||||
default:
|
||||
sb.AppendFormat("Logical unit supports unknown protection defined by code {0}", (byte)page.SPT)
|
||||
sb.AppendFormat("Logical unit supports unknown protection defined by code {0}", page.SPT)
|
||||
.AppendLine();
|
||||
break;
|
||||
}
|
||||
@@ -1422,11 +1423,11 @@ namespace DiscImageChef.Decoders.SCSI
|
||||
break;
|
||||
}
|
||||
|
||||
ATA.Identify.IdentifyDevice? id = ATA.Identify.Decode(page.IdentifyData);
|
||||
Identify.IdentifyDevice? id = Identify.Decode(page.IdentifyData);
|
||||
if(id.HasValue)
|
||||
{
|
||||
sb.AppendLine("\tATA IDENTIFY information follows:");
|
||||
sb.AppendFormat("{0}", ATA.Identify.Prettify(id)).AppendLine();
|
||||
sb.AppendFormat("{0}", Identify.Prettify(id)).AppendLine();
|
||||
}
|
||||
else sb.AppendLine("\tCould not decode ATA IDENTIFY information");
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace DiscImageChef.Decoders.SCSI.SSC
|
||||
if(decoded.Value.granularity > 0)
|
||||
#pragma warning disable IDE0004 // Remove Unnecessary Cast
|
||||
sb.AppendFormat("Device's needs a block size granularity of 2^{0} ({1}) bytes",
|
||||
decoded.Value.granularity, Math.Pow(2, (double)decoded.Value.granularity))
|
||||
decoded.Value.granularity, Math.Pow(2, decoded.Value.granularity))
|
||||
.AppendLine();
|
||||
#pragma warning restore IDE0004 // Remove Unnecessary Cast
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ namespace DiscImageChef.Decoders.SCSI.SSC
|
||||
if(descriptor.defaultDensity) sb.AppendLine("\tThis is the default density on the drive");
|
||||
sb.AppendFormat("\tDensity has {0} bits per mm, with {1} tracks in a {2} mm width tape",
|
||||
#pragma warning disable IDE0004 // Remove Unnecessary Cast
|
||||
descriptor.bpmm, descriptor.tracks, (double)((double)descriptor.width / (double)10))
|
||||
descriptor.bpmm, descriptor.tracks, descriptor.width / (double)10)
|
||||
.AppendLine();
|
||||
#pragma warning restore IDE0004 // Remove Unnecessary Cast
|
||||
sb.AppendFormat("\tDensity maximum capacity is {0} megabytes", descriptor.capacity).AppendLine();
|
||||
@@ -252,7 +252,7 @@ namespace DiscImageChef.Decoders.SCSI.SSC
|
||||
|
||||
sb.AppendFormat("\tMedium has a nominal length of {0} m in a {1} mm width tape",
|
||||
#pragma warning disable IDE0004 // Remove Unnecessary Cast
|
||||
descriptor.length, (double)((double)descriptor.width / (double)10)).AppendLine();
|
||||
descriptor.length, descriptor.width / (double)10).AppendLine();
|
||||
#pragma warning restore IDE0004 // Remove Unnecessary Cast
|
||||
sb.AppendFormat("\tMedium description: {0}", descriptor.description).AppendLine();
|
||||
sb.AppendLine();
|
||||
|
||||
Reference in New Issue
Block a user