small cleanup
authorMartin Baulig <martin@novell.com>
Tue, 12 Sep 2006 15:46:41 +0000 (15:46 -0000)
committerMartin Baulig <martin@novell.com>
Tue, 12 Sep 2006 15:46:41 +0000 (15:46 -0000)
svn path=/branches/martin/anonymous-methods/gmcs/; revision=65315

mcs/gmcs/decl.cs

index e717f347294dac2ecf3d169613246ca9debf627b..2b3d9b067060dcd9df06ef0bc70837bb809d8a37 100644 (file)
@@ -837,7 +837,7 @@ namespace Mono.CSharp {
                public bool CheckAccessLevel (Type check_type) 
                {
                        TypeBuilder tb;
-                       if ((this is GenericMethod) || (this is Iterator))
+                       if (this is GenericMethod)
                                tb = Parent.TypeBuilder;
                        else
                                tb = TypeBuilder;