Skip to content

Commit f928a07

Browse files
committed
Final cleanup in AppSecurityManager
1 parent a758d4a commit f928a07

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/AppSecurityManager.cs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@
1414
//
1515

1616
using System.Windows;
17-
using System.Windows.Interop;
1817
using MS.Internal.Utility;
19-
using MS.Win32;
2018
using System.Runtime.InteropServices;
21-
using MS.Internal.Documents.Application;
2219

2320
namespace MS.Internal.AppModel
2421
{
@@ -31,9 +28,6 @@ enum LaunchResult
3128

3229
internal static class AppSecurityManager
3330
{
34-
#region Internal Methods
35-
36-
3731
///<summary>
3832
/// Safely launch the browser if you can.
3933
/// If you can't demand unmanaged code permisison.
@@ -142,27 +136,5 @@ the key used is (supposedly) HKCR\htmlfile\shell\opennew\ddeexec, and its value
142136
throw new InvalidOperationException(SR.FailToLaunchDefaultBrowser,
143137
new System.ComponentModel.Win32Exception(/*uses the last Win32 error*/));
144138
}
145-
146-
#endregion Internal Methods
147-
148-
#region Private Methods
149-
150-
[ComImport, ComVisible(false), Guid("7b8a2d94-0ac9-11d1-896c-00c04Fb6bfc4")]
151-
internal class InternetSecurityManager { }
152-
153-
154-
#endregion Private Methods
155-
156-
#region Private Fields
157-
158-
private const string RefererHeader = "Referer: ";
159-
160-
private const string BrowserOpenCommandLookupKey = "htmlfile\\shell\\open\\command";
161-
162-
// Object to be used for locking. Using typeof(Util) causes an FxCop
163-
// violation DoNotLockOnObjectsWithWeakIdentity
164-
private static readonly object _lockObj = new object();
165-
166-
#endregion Private Fields
167139
}
168140
}

0 commit comments

Comments
 (0)