Skip to content

Commit dde7a32

Browse files
committed
change: Remove unused analysis description.
1 parent 3e74bf4 commit dde7a32

File tree

5 files changed

+0
-14
lines changed

5 files changed

+0
-14
lines changed

Yafc.Model/Analysis/Analysis.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ public static void ProcessAnalyses(IProgress<(string, string)> progress, Project
2121
}
2222
}
2323

24-
public abstract string description { get; }
25-
2624
public static void Do<T>(Project project) where T : Analysis {
2725
foreach (var analysis in analyses) {
2826
if (analysis is T t) {

Yafc.Model/Analysis/AutomationAnalysis.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,4 @@ public override void Compute(Project project, ErrorCollector warnings) {
9090
}
9191
automatable = state;
9292
}
93-
94-
public override string description => "Automation analysis tries to find what objects can be automated. Object cannot be automated if it requires looting an entity or manual crafting.";
9593
}

Yafc.Model/Analysis/CostAnalysis.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,6 @@ public override void Compute(Project project, ErrorCollector warnings) {
362362
workspaceSolver.Dispose();
363363
}
364364

365-
public override string description => "Cost analysis computes a hypothetical late-game base. This simulation has two very important results: " +
366-
"How much does stuff (items, recipes, etc) cost and how much of stuff do you need. It also collects a bunch of auxiliary results, for example " +
367-
"how efficient are different recipes. These results are used as heuristics and weights for calculations, and are also useful by themselves.";
368-
369365
private static readonly StringBuilder sb = new StringBuilder();
370366
public static string GetDisplayCost(FactorioObject goods) {
371367
float cost = goods.Cost();

Yafc.Model/Analysis/Milestones.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,4 @@ private static bool[] WalkAccessibilityGraph(Project project, HashSet<FactorioOb
265265
private const string UseDependencyExplorer = "\n\nFor this reason YAFC has a Dependency Explorer that allows you to manually enable some of the core recipes. " +
266266
"YAFC will iteratively try to unlock all the dependencies after each recipe you manually enabled. " +
267267
"For most modpacks it's enough to unlock a few early recipes like any special recipes for plates that everything in the mod is based on.";
268-
269-
public override string description => "Milestone analysis starts from objects that are placed on map by the map generator and tries to find all objects that are accessible from that, " +
270-
"taking notes about which objects are locked behind which milestones.";
271268
}

Yafc.Model/Analysis/TechnologyScienceAnalysis.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,4 @@ public override void Compute(Project project, ErrorCollector warnings) {
108108
allSciencePacks = Database.technologies.CreateMapping(
109109
tech => sciencePackCount.Select((x, id) => x[tech] == 0 ? null : new Ingredient(sciencePacks[id], x[tech])).WhereNotNull().ToArray());
110110
}
111-
112-
public override string description =>
113-
"Technology analysis calculates the total amount of science packs required for each technology";
114111
}

0 commit comments

Comments
 (0)