Merge pull request #3078 from akoeplinger/fix-test-exclude-filename
[mono.git] / mcs / class / corlib / System.Security / SecurityFrame.cs
index e7535bd89cd05a9ba450ea1ddca19ffdfde284aa..d2fedeb286bef7d1ac26e33f221f68ce88ff8ad0 100644 (file)
@@ -41,91 +41,4 @@ namespace System.Security {
                public int size;
                public int index;
        }
-
-       internal struct SecurityFrame {
-
-               private AppDomain _domain;
-               private MethodInfo _method;
-               private PermissionSet _assert;
-               private PermissionSet _deny;
-               private PermissionSet _permitonly;
-
-               internal SecurityFrame (int skip)
-               {
-                       _domain = null;
-                       _method = null;
-                       _assert = null;
-                       _deny = null;
-                       _permitonly = null;
-
-                       throw new NotImplementedException ();
-               }
-
-               public Assembly Assembly {
-                       get { return _method.ReflectedType.Assembly; }
-               }
-
-               public AppDomain Domain {
-                       get { return _domain; }
-               }
-
-               public MethodInfo Method {
-                       get { return _method; }
-               }
-
-               public PermissionSet Assert {
-                       get { return _assert; }
-               }
-
-               public PermissionSet Deny {
-                       get { return _deny; }
-               }
-
-               public PermissionSet PermitOnly {
-                       get { return _permitonly; }
-               }
-
-               public bool HasStackModifiers {
-                       get { return ((_assert != null) || (_deny != null) || (_permitonly != null)); }
-               }
-
-               public bool Equals (SecurityFrame sf)
-               {
-                       if (!Object.ReferenceEquals (_domain, sf.Domain))
-                               return false;
-                       if (Assembly.ToString () != sf.Assembly.ToString ())
-                               return false;
-                       if (Method.ToString () != sf.Method.ToString ())
-                               return false;
-
-                       if ((_assert != null) && !_assert.Equals (sf.Assert))
-                               return false;
-                       if ((_deny != null) && !_deny.Equals (sf.Deny))
-                               return false;
-                       if ((_permitonly != null) && !_permitonly.Equals (sf.PermitOnly))
-                               return false;
-
-                       return true;
-               }
-
-               public override string ToString ()
-               {
-                       StringBuilder sb = new StringBuilder ();
-                       sb.AppendFormat ("Frame: {0}{1}", _method, Environment.NewLine);
-                       sb.AppendFormat ("\tAppDomain: {0}{1}", Domain, Environment.NewLine);
-                       sb.AppendFormat ("\tAssembly: {0}{1}", Assembly, Environment.NewLine);
-                       if (_assert != null)
-                               sb.AppendFormat ("\tAssert: {0}{1}", _assert, Environment.NewLine);
-                       if (_deny != null)
-                               sb.AppendFormat ("\tDeny: {0}{1}", _deny, Environment.NewLine);
-                       if (_permitonly != null)
-                               sb.AppendFormat ("\tPermitOnly: {0}{1}", _permitonly, Environment.NewLine);
-                       return sb.ToString ();
-               }
-
-               static public ArrayList GetStack (int skipFrames)
-               {
-                       return new ArrayList ();
-               }
-       }
 }