Remove a variable that is no longer needed

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

View file

@ -127,24 +127,20 @@ namespace Ryujinx.HLE.Gpu.Memory
bool IsCached = Cache.TryGetValue(Key, out CachedPage Cp); bool IsCached = Cache.TryGetValue(Key, out CachedPage Cp);
bool PgReset = false; if (IsCached)
if (!IsCached)
{
Cp = new CachedPage();
Cache.Add(Key, Cp);
}
else
{ {
CpCount -= Cp.GetTotalCount(); CpCount -= Cp.GetTotalCount();
SortedCache.Remove(Cp.Node); 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(); Cp = new CachedPage();