Fix TODOs and code cleanup.

This commit is contained in:
2019-07-31 19:53:47 +01:00
parent 62e14f275e
commit c51847b734
11 changed files with 143 additions and 150 deletions

View File

@@ -69,7 +69,6 @@ namespace DiscImageChef.Filesystems.ISO9660
offset += entry.XattrLength;
// TODO: XA
long firstSector = offset / 2048;
long offsetInSector = offset % 2048;
long sizeInSectors = (size + offsetInSector) / 2048;
@@ -227,7 +226,6 @@ namespace DiscImageChef.Filesystems.ISO9660
if(entry.CdiSystemArea.Value.attributes.HasFlag(CdiAttributes.OwnerRead)) stat.Mode |= 256;
}
// TODO: XA
uint eaSizeInSectors = (uint)(entry.XattrLength / 2048);
if(entry.XattrLength % 2048 > 0) eaSizeInSectors++;
@@ -270,7 +268,7 @@ namespace DiscImageChef.Filesystems.ISO9660
{
entry = null;
string cutPath = path.StartsWith("/")
string cutPath = path.StartsWith("/", StringComparison.Ordinal)
? path.Substring(1).ToLower(CultureInfo.CurrentUICulture)
: path.ToLower(CultureInfo.CurrentUICulture);
string[] pieces = cutPath.Split(new[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
@@ -296,7 +294,6 @@ namespace DiscImageChef.Filesystems.ISO9660
if(string.IsNullOrEmpty(dirent.Key))
{
// TODO: RRIP
if(!joliet && !pieces[pieces.Length - 1].EndsWith(";1", StringComparison.Ordinal))
{
dirent = parent.FirstOrDefault(t => t.Key.ToLower(CultureInfo.CurrentUICulture) ==