Skip to content

Commit

Permalink
chore: cleanup unused usings
Browse files Browse the repository at this point in the history
  • Loading branch information
Notexe committed Feb 3, 2024
1 parent 842318f commit 2590d14
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
5 changes: 2 additions & 3 deletions G2GFxDataTool/Helpers.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Security.AccessControl;
using System.Text;
using System.Text;

namespace G2GFxDataTool
{
Expand Down Expand Up @@ -51,7 +50,7 @@ internal static string UIControlPathDeriver(string inputPath, string className)
{
string assemblyPath = inputPath.Substring(index + searchTerm.Length).Replace('\\', '/');

assemblyPath = $"[assembly:/{assemblyPath}?/{className}.uic].pc";
assemblyPath = $"[assembly:/{assemblyPath}?/{className}.uic].pc_";

return assemblyPath.ToLower();
}
Expand Down
8 changes: 1 addition & 7 deletions G2GFxDataTool/Licenses.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace G2GFxDataTool
namespace G2GFxDataTool
{
internal class Licenses
{
Expand Down
12 changes: 5 additions & 7 deletions G2GFxDataTool/UIControlWriter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Reflection;
using System.Text.Json;
using static G2GFxDataTool.ParseSWF;
using System.Text.Json;

namespace G2GFxDataTool
{
Expand Down Expand Up @@ -43,9 +41,9 @@ internal static void WriteUIControl(string inputPath, string outputPath)
};


string uictAssemblyPath = Helpers.UIControlPathDeriver(inputPath, definition.className) + "_entitytype";
string uicbAssemblyPath = Helpers.UIControlPathDeriver(inputPath, definition.className) + "_entityblueprint";
string uictAssemblyPath = Helpers.UIControlPathDeriver(inputPath, definition.className) + "entitytype";
string uicbAssemblyPath = Helpers.UIControlPathDeriver(inputPath, definition.className) + "entityblueprint";

string uictAssemblyPathHash = Helpers.ConvertStringtoMD5(uictAssemblyPath);
string uicbAssemblyPathHash = Helpers.ConvertStringtoMD5(uicbAssemblyPath);

Expand Down Expand Up @@ -95,7 +93,7 @@ internal static void WriteUIControl(string inputPath, string outputPath)
string jsonData = JsonSerializer.Serialize(uicbData);

File.Create(Path.Combine(outputPath, uictAssemblyPathHash + ".UICT"));
//File.WriteAllText(Path.Combine(outputPath, uicbAssemblyPathHash + ".UICB.json"), jsonData);
File.WriteAllText(Path.Combine(outputPath, uicbAssemblyPathHash + ".UICB.json"), jsonData);
}
}
}
Expand Down

0 comments on commit 2590d14

Please sign in to comment.