Skip to content

Commit b1c30e0

Browse files
committed
Remove dead codegen code in WRC
1 parent de40aee commit b1c30e0

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

CodeGen/Generators/UnitsNetWrcGenerator.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,6 @@ private static Quantity ParseQuantityFile(string jsonFile)
6767
return quantity;
6868
}
6969

70-
private static void GenerateUnitTestClassIfNotExists(StringBuilder sb, Quantity quantity, string filePath)
71-
{
72-
if (File.Exists(filePath))
73-
{
74-
sb.Append("test stub(skip) ");
75-
return;
76-
}
77-
78-
string content = new UnitTestStubGenerator(quantity).Generate();
79-
File.WriteAllText(filePath, content, Encoding.UTF8);
80-
sb.Append("test stub(OK) ");
81-
}
82-
8370
private static void GenerateQuantity(StringBuilder sb, Quantity quantity, string filePath)
8471
{
8572
string content = new QuantityGenerator(quantity).Generate();
@@ -94,13 +81,6 @@ private static void GenerateUnitType(StringBuilder sb, Quantity quantity, string
9481
sb.Append("unit(OK) ");
9582
}
9683

97-
private static void GenerateUnitTestBaseClass(StringBuilder sb, Quantity quantity, string filePath)
98-
{
99-
string content = new UnitTestBaseClassGenerator(quantity).Generate();
100-
File.WriteAllText(filePath, content, Encoding.UTF8);
101-
sb.Append("test base(OK) ");
102-
}
103-
10484
private static void GenerateUnitAbbreviationsCache(Quantity[] quantities, string filePath)
10585
{
10686
string content = new UnitAbbreviationsCacheGenerator(quantities).Generate();

0 commit comments

Comments
 (0)