Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: Cleaned left-over logging,
Browse files Browse the repository at this point in the history
  • Loading branch information
RiotNOR committed May 15, 2023
1 parent 5cc14f3 commit 7b62da0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
15 changes: 3 additions & 12 deletions RotationSolver/RotationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ internal Assembly LoadFromFile(string filePath)
}
using var pdbFile = File.Open(pdbPath, FileMode.Open, FileAccess.Read, FileShare.Read);
var assembly = LoadFromStream(file, pdbFile);

file.Dispose();
pdbFile.Dispose();
return assembly;
}
}
Expand Down Expand Up @@ -181,16 +184,4 @@ public static Assembly LoadFrom(string filePath)

return assembly;
}

public static string GetFileMD5Hash(string filePath)
{
using (var md5 = MD5.Create())
{
using (var stream = File.OpenRead(filePath))
{
byte[] hashBytes = md5.ComputeHash(stream);
return BitConverter.ToString(hashBytes).Replace("-", "").ToLower();
}
}
}
}
5 changes: 0 additions & 5 deletions RotationSolver/Updaters/RotationUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,8 @@ public static void LocalRotationWatcher()

if (index == -1)
{
PluginLog.LogWarning("Loading: " + dll);
GetAllCustomRotations(DownloadOption.Local);
}
else
{
PluginLog.LogWarning("Already loaded: " + dll);
}
}
}

Expand Down

0 comments on commit 7b62da0

Please sign in to comment.