misc: chore: Use collection expressions (part 2)

This commit is contained in:
KeatonTheBot 2025-03-10 21:32:01 -05:00
parent c923c0043a
commit 340ec79e9f
176 changed files with 308 additions and 308 deletions

View file

@ -549,7 +549,7 @@ namespace Ryujinx.Graphics.Gpu.Image
_channel = channel;
_cacheFromBuffer = new Dictionary<CacheEntryFromBufferKey, CacheEntryFromBuffer>();
_cacheFromPool = new Dictionary<CacheEntryFromPoolKey, CacheEntry>();
_lruCache = new LinkedList<CacheEntryFromBuffer>();
_lruCache = [];
}
/// <summary>
@ -1116,7 +1116,7 @@ namespace Ryujinx.Graphics.Gpu.Image
{
if (key.MatchesPool(pool))
{
(keysToRemove ??= new()).Add(key);
(keysToRemove ??= []).Add(key);
if (key.IsImage)
{