mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Optimize LINQ queries.
This commit is contained in:
@@ -253,7 +253,7 @@ public abstract class OpticalImageConvertIssueTest
|
||||
|
||||
foreach(SectorTagType tag in inputFormat.Info.ReadableSectorTags
|
||||
.Where(static t => t == SectorTagType.CdTrackIsrc)
|
||||
.OrderBy(static t => t))
|
||||
.Order())
|
||||
{
|
||||
foreach(Track track in tracks)
|
||||
{
|
||||
@@ -267,7 +267,7 @@ public abstract class OpticalImageConvertIssueTest
|
||||
|
||||
foreach(SectorTagType tag in inputFormat.Info.ReadableSectorTags
|
||||
.Where(static t => t == SectorTagType.CdTrackFlags)
|
||||
.OrderBy(static t => t))
|
||||
.Order())
|
||||
{
|
||||
foreach(Track track in tracks)
|
||||
{
|
||||
@@ -286,7 +286,7 @@ public abstract class OpticalImageConvertIssueTest
|
||||
subchannelExtents.Add((int)s);
|
||||
}
|
||||
|
||||
foreach(SectorTagType tag in inputFormat.Info.ReadableSectorTags.OrderBy(static t => t).TakeWhile(_ => UseLong))
|
||||
foreach(SectorTagType tag in inputFormat.Info.ReadableSectorTags.Order().TakeWhile(_ => UseLong))
|
||||
{
|
||||
switch(tag)
|
||||
{
|
||||
|
||||
@@ -342,7 +342,7 @@ public abstract class WritableOpticalMediaImageTest : BaseWritableMediaImageTest
|
||||
|
||||
foreach(SectorTagType tag in inputFormat.Info.ReadableSectorTags
|
||||
.Where(static t => t == SectorTagType.CdTrackIsrc)
|
||||
.OrderBy(static t => t))
|
||||
.Order())
|
||||
{
|
||||
foreach(Track track in tracks)
|
||||
{
|
||||
@@ -356,7 +356,7 @@ public abstract class WritableOpticalMediaImageTest : BaseWritableMediaImageTest
|
||||
|
||||
foreach(SectorTagType tag in inputFormat.Info.ReadableSectorTags
|
||||
.Where(static t => t == SectorTagType.CdTrackFlags)
|
||||
.OrderBy(static t => t))
|
||||
.Order())
|
||||
{
|
||||
foreach(Track track in tracks)
|
||||
{
|
||||
@@ -375,8 +375,7 @@ public abstract class WritableOpticalMediaImageTest : BaseWritableMediaImageTest
|
||||
subchannelExtents.Add((int)s);
|
||||
}
|
||||
|
||||
foreach(SectorTagType tag in inputFormat.Info.ReadableSectorTags.OrderBy(static t => t)
|
||||
.TakeWhile(_ => useLong))
|
||||
foreach(SectorTagType tag in inputFormat.Info.ReadableSectorTags.Order().TakeWhile(_ => useLong))
|
||||
{
|
||||
switch(tag)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user