Skip to content

Commit b9c745c

Browse files
committed
chore: delete temporary structs
1 parent 22c3292 commit b9c745c

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

Lagrange.Core/Internal/Events/System/FlashTransferEvent.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ internal class FlashTransferFile(string fileId, uint index, string fileName, Str
2222

2323
public byte[] FileMd5 { get; } = stream.Md5();
2424

25-
public static List<FlashTransferFileCategoryStatistic> CreateCategoryStatistics(IReadOnlyList<FlashTransferFile> files)
26-
{
27-
return files
28-
.GroupBy(file => file.Category)
29-
.OrderBy(group => group.Key)
30-
.Select(group => new FlashTransferFileCategoryStatistic(group.Key, group.Count(), $"{ResolveCategoryName(group.Key)}({group.Count()})"))
31-
.ToList();
32-
}
3325

3426
private static uint ResolveFileType(string fileName)
3527
{
@@ -98,7 +90,6 @@ internal enum FlashTransferFileCategory : uint
9890
Other = 6
9991
}
10092

101-
internal readonly record struct FlashTransferFileCategoryStatistic(FlashTransferFileCategory Category, int Count, string DisplayName);
10293

10394
internal class FlashTransferCreateFileSetEventReq(string title, string asciiTitle, List<FlashTransferFile> files) : ProtocolEvent
10495
{
@@ -108,7 +99,6 @@ internal class FlashTransferCreateFileSetEventReq(string title, string asciiTitl
10899

109100
public List<FlashTransferFile> Files { get; } = files;
110101

111-
public List<FlashTransferFileCategoryStatistic> CategoryStatistics { get; } = FlashTransferFile.CreateCategoryStatistics(files);
112102
}
113103

114104
internal class FlashTransferCreateFileSetEventResp(string fileSetId, string shareLink) : ProtocolEvent

0 commit comments

Comments
 (0)