cleanup code

This commit is contained in:
pypy
2020-11-01 23:41:21 +09:00
parent 2cc00465ad
commit c051dccecf
10 changed files with 241 additions and 207 deletions

View File

@@ -30,23 +30,7 @@ namespace VRCX
m_MapLock.EnterWriteLock();
try
{
if (m_Map.Count > 0)
{
m_Map.Clear();
}
}
finally
{
m_MapLock.ExitWriteLock();
}
}
public bool Remove(string key)
{
m_MapLock.EnterWriteLock();
try
{
return m_Map.Remove(key);
m_Map.Clear();
}
finally
{
@@ -84,5 +68,18 @@ namespace VRCX
m_MapLock.ExitWriteLock();
}
}
public bool Remove(string key)
{
m_MapLock.EnterWriteLock();
try
{
return m_Map.Remove(key);
}
finally
{
m_MapLock.ExitWriteLock();
}
}
}
}