Clean up '#if CORE' in Utilities.cs (#4425)

This commit is contained in:
Ilya authored and Dongbo Wang committed 2017-07-31 12:50:44 -07:00
1 parent ea3c207636
commit 1841682c08
1 file changed
+2 -4
@@ -837,9 +837,8 @@ namespace System.Management.Automation.Interpreter
private StorageInfo CreateStorageInfo()
{
// we do our own locking, tell hosts this is a bad time to interrupt us.
#if !SILVERLIGHT && !CORECLR
Thread.BeginCriticalRegion();
#endif
StorageInfo[] curStorage = s_updating;
try
{
@@ -886,9 +885,8 @@ namespace System.Management.Automation.Interpreter
// let others access the storage again
Interlocked.Exchange(ref _stores, curStorage);
}
#if !SILVERLIGHT && !CORECLR
Thread.EndCriticalRegion();
#endif
}
}