Address warnings in code I wrote

This commit is contained in:
Matt Nadareski
2021-01-15 13:06:17 -08:00
parent 32d1c59d64
commit cb947fdf51
5 changed files with 6 additions and 10 deletions

View File

@@ -12,8 +12,8 @@ namespace SabreTools.Core
/// <summary> /// <summary>
/// The current toolset version to be used by all child applications /// The current toolset version to be used by all child applications
/// </summary> /// </summary>
public readonly static string Version = $"v1.0.7"; //public readonly static string Version = $"v1.0.7";
//public readonly static string Version = $"v1.0.7-{File.GetCreationTime(Assembly.GetExecutingAssembly().Location):yyyy-MM-dd HH:mm:ss}"; public readonly static string Version = $"v1.0.7-{File.GetCreationTime(Assembly.GetExecutingAssembly().Location):yyyy-MM-dd HH:mm:ss}";
/// <summary> /// <summary>
/// Readies the console and outputs the header /// Readies the console and outputs the header

View File

@@ -88,9 +88,9 @@ namespace SabreTools.Core.Tools
} }
/// <summary> /// <summary>
/// Finalize the internal hash algorigthm /// Terminate the internal hash algorigthm
/// </summary> /// </summary>
public void Finalize() public void Terminate()
{ {
byte[] emptyBuffer = new byte[0]; byte[] emptyBuffer = new byte[0];
switch (HashType) switch (HashType)

View File

@@ -204,7 +204,6 @@ namespace SabreTools.DatFiles.Formats
} }
// Get the hash field and set final fields // Get the hash field and set final fields
string hash;
switch (_hash) switch (_hash)
{ {
case Hash.CRC: case Hash.CRC:

View File

@@ -399,7 +399,7 @@ namespace SabreTools.FileTypes
// Finalize all hashing helpers // Finalize all hashing helpers
loadBuffer.Finish(); loadBuffer.Finish();
Parallel.ForEach(hashers, Globals.ParallelOptions, h => h.Finalize()); Parallel.ForEach(hashers, Globals.ParallelOptions, h => h.Terminate());
// Get the results // Get the results
BaseFile baseFile = new BaseFile() BaseFile baseFile = new BaseFile()

View File

@@ -47,10 +47,7 @@ namespace SabreTools.Filtering
/// <param name="negate">True if negative filter, false otherwise</param> /// <param name="negate">True if negative filter, false otherwise</param>
public void SetFilter(DatHeaderField key, string value, bool negate) public void SetFilter(DatHeaderField key, string value, bool negate)
{ {
switch (key) // TODO: Add DatHeader filters
{
// TODO: Add DatHeader filters
}
} }
#endregion #endregion