Remove a variable that is no longer needed

This commit is contained in:
gdkchan 2018-07-06 13:29:32 -03:00
parent cbf7bd07f6
commit 5e030038f8

View file

@ -127,24 +127,20 @@ namespace Ryujinx.HLE.Gpu.Memory
bool IsCached = Cache.TryGetValue(Key, out CachedPage Cp);
bool PgReset = false;
if (!IsCached)
{
Cp = new CachedPage();
Cache.Add(Key, Cp);
}
else
if (IsCached)
{
CpCount -= Cp.GetTotalCount();
SortedCache.Remove(Cp.Node);
}
else
{
Cp = new CachedPage();
PgReset |= Modified[Index++] && IsCached;
Cache.Add(Key, Cp);
}
if (PgReset)
if (Modified[Index++] && IsCached)
{
Cp = new CachedPage();