Remove unnecessary logic

gamestrings: call but not value used
text.cs: use gamestrings method for auto-filtered, now removes korean in
Gen3 context
This commit is contained in:
Kurt
2018-07-14 16:53:14 -07:00
parent 77c5d13034
commit 6b7ba49cba
2 changed files with 1 additions and 5 deletions

View File

@@ -487,7 +487,6 @@ public IReadOnlyList<ComboItem> GetLocationList(GameVersion Version, int SaveFor
public static IReadOnlyList<ComboItem> LanguageDataSource(int gen)
{
var languages = LanguageList.ToList();
Util.GetUnsortedCBList("languages");
if (gen == 3)
languages.RemoveAll(l => l.Value >= (int)LanguageID.Korean);
else if (gen < 7)

View File

@@ -109,10 +109,7 @@ private void AddTrashEditing(int count)
CB_Species.DataSource = new BindingSource(GameInfo.SpeciesDataSource, null);
CB_Language.InitializeBinding();
var languages = Util.GetUnsortedCBList("languages");
if (SAV.Generation < 7)
languages = languages.Where(l => l.Value <= 8).ToList(); // Korean
CB_Language.DataSource = languages;
CB_Language.DataSource = GameInfo.LanguageDataSource(SAV.Generation);
}
private void UpdateNUD(object sender, EventArgs e)