[cleanup] WebConfigurationManager: remove hasConfigErrors
authorEtienne CHAMPETIER <etienne.champetier@fiducial.net>
Mon, 27 Oct 2014 20:45:56 +0000 (21:45 +0100)
committerEtienne CHAMPETIER <etienne.champetier@fiducial.net>
Mon, 1 Dec 2014 22:57:19 +0000 (23:57 +0100)
it's not used since 2009 (6a261e04add13efa6eb43ed015ab26953c2b3a95)

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@fiducial.net>
mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs

index 4d0e71f63755aa175cf93267d83c5983c8fad6b8..990378c7c4ac47c925f6fb92624f15b162c19a49 100644 (file)
@@ -88,16 +88,6 @@ namespace System.Web.Configuration {
                        }
                }
 
-               static bool hasConfigErrors = false;
-               static object hasConfigErrorsLock = new object ();
-               static internal bool HasConfigErrors {
-                       get {
-                               lock (hasConfigErrorsLock) {
-                                       return hasConfigErrors;
-                               }
-                       }
-               }
-
                const int DEFAULT_SECTION_CACHE_SIZE = 100;
                const string CACHE_SIZE_OVERRIDING_KEY = "MONO_ASPNET_WEBCONFIG_CACHESIZE";
                static LruCache<int, object> sectionCache;
@@ -275,15 +265,8 @@ namespace System.Web.Configuration {
                        _Configuration conf = null;
                        conf = (_Configuration) configurations [confKey];
                        if (conf == null) {
-                               try {
-                                       conf = ConfigurationFactory.Create (typeof (WebConfigurationHost), null, path, site, locationSubPath, server, userName, password, inAnotherApp);
-                                       configurations [confKey] = conf;
-                               } catch (Exception ex) {
-                                       lock (hasConfigErrorsLock) {
-                                               hasConfigErrors = true;
-                                       }
-                                       throw ex;
-                               }
+                               conf = ConfigurationFactory.Create (typeof (WebConfigurationHost), null, path, site, locationSubPath, server, userName, password, inAnotherApp);
+                               configurations [confKey] = conf;
                        }
                        return conf;
                }