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

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
misandrie committed May 14, 2024
1 parent b1555ec commit 839117d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
3 changes: 0 additions & 3 deletions Marsey/Config/MarseyConf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,16 @@ public static class MarseyConf

/// <summary>
/// Should we log anything from the loader
/// <see cref="Utility.SetupFlags"/>
/// </summary>
public static bool Logging;

/// <summary>
/// Log DEBG messages
/// <see cref="Utility.SetupFlags"/>
/// </summary>
public static bool DebugAllowed;

/// <summary>
/// Throws an exception on client if any patch had failed applying.
/// <see cref="Utility.SetupFlags"/>
/// </summary>
public static bool ThrowOnFail;

Expand Down
14 changes: 0 additions & 14 deletions Marsey/Misc/Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,6 @@ private static void SharedLog(string message)
}
public abstract class Utility
{
/// <summary>
/// Checks loader environment variables, sets relevant flags in MarseyVars.
/// Executed only by the loader.
/// </summary>
/*public static void SetupFlags()
{
foreach (KeyValuePair<string, Action<bool>> kvp in MarseyConf.EnvVarMap)
{
bool value = CheckEnv(kvp.Key);
MarseyLogger.Log(MarseyLogger.LogType.DEBG, "Marseyconf", $"{kvp.Key} returned {value}");
kvp.Value(value);
}
}*/

private static bool CheckEnv(string envName)
{
string envVar = Envsey.CleanFlag(envName)!;
Expand Down

0 comments on commit 839117d

Please sign in to comment.