[bcl] Remove more NET_2_0 checks from class libs
[mono.git] / mcs / class / System.Web / Test / mainsoft / NunitWeb / NunitWeb / WebTestResourcesSetupAttribute.cs
index 4c132c2335b37482af77d63f1870c12be0c16433..4d67edae1e56f2796ec4d4a4efc3e74088dfe151 100644 (file)
@@ -79,17 +79,11 @@ namespace MonoTests.SystemWeb.Framework
                                throw new InvalidOperationException ("Method '" + methodName + "' cannot be found in type '" + type + "'.");
 
                        if (mi.IsAbstract ||
-#if NET_2_0
                            mi.IsGenericMethodDefinition ||
-#endif
                            mi.ReturnType != typeof (void) || mi.GetParameters ().Length > 0)
                                throw new InvalidOperationException ("Method '" + methodName + "' must return void and take no parameters.");
 
-#if NET_2_0
                        ret = Delegate.CreateDelegate (typeof (SetupHandler), null, mi, false) as SetupHandler;
-#else
-                       ret = Delegate.CreateDelegate (typeof (SetupHandler), mi) as SetupHandler;
-#endif
                        if (ret == null)
                                throw new InvalidOperationException ("Failed to create a delegate to method '" + methodName + "'.");