Clean up code

This commit is contained in:
2022-05-21 15:55:26 +08:00
parent e797032216
commit 0d1d15529d

View File

@ -16,14 +16,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
**/
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;
using GrasscutterTools.Game;
using GrasscutterTools.Game.Gacha;
@ -47,7 +46,6 @@ namespace GrasscutterTools.Forms
InitBannerPrefab();
InitCheckedListBoxs();
ShowBanner(new GachaBanner2());
}
@ -57,7 +55,6 @@ namespace GrasscutterTools.Forms
CmbPrefab.Items.AddRange(GameData.GachaBannerPrefabs.Names);
}
private void LnkWeightHelp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("https://github.com/Grasscutters/Grasscutter/pull/639");
@ -94,7 +91,6 @@ namespace GrasscutterTools.Forms
ListFallbackItems.Items.Clear();
ListFallbackItems.Items.AddRange(avatars.Concat(weapons).ToArray());
ListUpItems.BeginUpdate();
var ua5 = ListUpItems.Groups["GroupUpA5"];
var ua4 = ListUpItems.Groups["GroupUpA4"];
@ -166,11 +162,11 @@ namespace GrasscutterTools.Forms
yield return int.Parse(item.Text);
}
#endregion
#endregion - -
#region - -
struct GachaWeight
private struct GachaWeight
{
public int Count;
public int Weight;
@ -201,7 +197,7 @@ namespace GrasscutterTools.Forms
return JsonConvert.DeserializeObject<int[,]>(weights);
}
#endregion
#endregion - -
#region - -
@ -248,7 +244,6 @@ namespace GrasscutterTools.Forms
return null;
}
var prefabId = GameData.GachaBannerPrefabs.Ids[CmbPrefab.SelectedIndex];
var banner = new GachaBanner2
{
@ -317,7 +312,6 @@ namespace GrasscutterTools.Forms
}
}
#endregion
#endregion - -
}
}