[bcl] Remove NET_4_0 defines from class libs.
[mono.git] / mcs / class / System.Web / System.Web / HttpApplicationFactory.cs
index d2801b013f0c6ab09565522c44ed6be2d446c28c..597379a9bad1bf9fd94c6a0ead55e9c87673080f 100644 (file)
@@ -371,10 +371,8 @@ namespace System.Web
                                                if (!File.Exists (app_file))
                                                        app_file = null;
                                        }
-#if NET_4_0
                                        BuildManager.CallPreStartMethods ();
                                        BuildManager.CompilingTopLevelAssemblies = true;
-#endif
                                        AppResourcesCompiler ac = new AppResourcesCompiler (context);
                                        ac.Compile ();
 
@@ -413,9 +411,7 @@ namespace System.Web
                                        if (Directory.Exists (app_browsers_path)) {
                                                app_browsers_files = Directory.GetFiles (app_browsers_path, "*.browser");
                                        }
-#if NET_4_0
                                        BuildManager.CompilingTopLevelAssemblies = false;
-#endif
                                        app_type = BuildManager.GetPrecompiledApplicationType ();
                                        if (app_type == null && app_file != null) {
                                                app_type = BuildManager.GetCompiledType ("~/" + Path.GetFileName (app_file));