[linker] We don't need to mark nested types more than once.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 4 Oct 2016 16:52:26 +0000 (18:52 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Tue, 4 Oct 2016 16:52:26 +0000 (18:52 +0200)
mcs/tools/linker/Mono.Linker.Steps/MarkStep.cs

index bc04fc5c7c024087188ffee7b0c337305b6aae8f..9bf293d7f13fe527b221ceab7461a6c35e2a7d84 100644 (file)
@@ -90,13 +90,6 @@ namespace Mono.Linker.Steps {
                                InitializeFields (type);
                        if (type.HasMethods)
                                InitializeMethods (type.Methods);
-
-                       if (type.HasNestedTypes) {
-                               foreach (var nested in type.NestedTypes) {
-                                       if (Annotations.IsMarked (nested))
-                                               InitializeType (nested);
-                               }
-                       }
                }
 
                void InitializeFields (TypeDefinition type)