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

@@ -5,7 +5,7 @@ namespace DiscImageChef.Filesystems.ISO9660
{
public partial class ISO9660
{
DateTime? DecodeIsoDateTime(byte[] timestamp)
static DateTime? DecodeIsoDateTime(byte[] timestamp)
{
switch(timestamp?.Length)
{
@@ -15,7 +15,7 @@ namespace DiscImageChef.Filesystems.ISO9660
}
}
DateTime? DecodeIsoDateTime(IsoTimestamp timestamp)
static DateTime? DecodeIsoDateTime(IsoTimestamp timestamp)
{
try
{
@@ -26,14 +26,14 @@ namespace DiscImageChef.Filesystems.ISO9660
return TimeZoneInfo.ConvertTimeToUtc(date, TimeZoneInfo.FindSystemTimeZoneById("GMT"));
}
catch(Exception e)
catch(Exception)
{
// ISO says timestamp can be unspecified
return null;
}
}
DateTime? DecodeHighSierraDateTime(HighSierraTimestamp timestamp)
static DateTime? DecodeHighSierraDateTime(HighSierraTimestamp timestamp)
{
try
{
@@ -42,7 +42,7 @@ namespace DiscImageChef.Filesystems.ISO9660
return TimeZoneInfo.ConvertTimeToUtc(date, TimeZoneInfo.FindSystemTimeZoneById("GMT"));
}
catch(Exception e)
catch(Exception)
{
// ISO says timestamp can be unspecified, suppose same for High Sierra
return null;