Remove CAS attributes from System.Drawing (#4544)
[mono.git] / mcs / class / System.Drawing / System.Drawing / Bitmap.cs
index 8acb49bb0fcac5a9e1fef53dc11aa09d7cbfb1ca..ffa825c5f273f0e9208cbb5871b20031094715c6 100644 (file)
@@ -40,7 +40,6 @@ using System.Drawing.Imaging;
 using System.Runtime.Serialization;
 using System.Runtime.InteropServices;
 using System.ComponentModel;
-using System.Security.Permissions;
 
 namespace System.Drawing
 {
@@ -228,14 +227,12 @@ namespace System.Drawing
                }
 
                [EditorBrowsable (EditorBrowsableState.Advanced)]
-               [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
                public IntPtr GetHbitmap ()
                {
                        return GetHbitmap(Color.Gray);
                }
 
                [EditorBrowsable (EditorBrowsableState.Advanced)]
-               [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
                public IntPtr GetHbitmap (Color background)
                {
                        IntPtr HandleBmp;
@@ -247,7 +244,6 @@ namespace System.Drawing
                }
 
                [EditorBrowsable (EditorBrowsableState.Advanced)]
-               [SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
                public IntPtr GetHicon ()
                {
                        IntPtr HandleIcon;