Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
Apparently had to do with texture replacer corruption, but not called
anywhere
  • Loading branch information
blowfishpro committed Aug 27, 2017
1 parent 05342e2 commit 8685da9
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions MMPatchLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,37 +535,6 @@ private void SaveModdedPhysics()
configs[0].config.Save(physicsPath);
}


// DB check used to track the now fixed TextureReplacer corruption
public static void checkValues()
{
foreach (UrlDir.UrlConfig mod in GameDatabase.Instance.root.AllConfigs)
{
if (checkValues(mod.config))
{
log("Found bad value");
return;
}
}
log("Found no bad value");
}

static bool checkValues(ConfigNode node)
{
foreach (ConfigNode.Value value in node.values)
{
if (value.name.Length == -1)
return true;
}

foreach (ConfigNode subNode in node.nodes)
{
if (checkValues(subNode))
return true;
}
return false;
}

private string FileSHA(string filename)
{
try
Expand Down

0 comments on commit 8685da9

Please sign in to comment.