From 99892d79f9df5b9203636020ed8c9d5669b6c650 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Thu, 8 Apr 2021 13:01:35 -0400 Subject: [PATCH] [tests] Revert manual preservation of InternalsVisibleToAttribute.ctor(string) (#11160) The issue https://github.com/mono/linker/issues/1913 was fixed a while ago. --- tests/linker/ios/link all/Main.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/linker/ios/link all/Main.cs b/tests/linker/ios/link all/Main.cs index 10e8609d6f..378d25b29f 100644 --- a/tests/linker/ios/link all/Main.cs +++ b/tests/linker/ios/link all/Main.cs @@ -16,16 +16,4 @@ namespace LinkAll } #endif // !__WATCHOS__ } - -#if NET - // https://github.com/mono/linker/issues/1913 - [Foundation.Preserve (AllMembers = true)] - class Preserver - { - public Preserver () - { - GC.KeepAlive (new System.Runtime.CompilerServices.InternalsVisibleToAttribute ("preserve this constructor")); - } - } -#endif }