Ver código fonte

[asp.net] Remove unnecessary try/catch block from the old entries expiration code.

Marek Habersack 15 anos atrás
pai
commit
bd2ff0ebde
1 arquivos alterados com 1 adições e 6 exclusões
  1. 1 6
      mcs/class/System.Web/System.Web.Caching/Cache.cs

+ 1 - 6
mcs/class/System.Web/System.Web.Caching/Cache.cs

@@ -175,12 +175,7 @@ namespace System.Web.Caching
 				return;
 			
 			ThreadPool.QueueUserWorkItem (delegate {
-				try {
-					DoRemoveOldItemsIfNecessary ();
-				} catch (Exception ex) {
-					Console.Error.WriteLine ("Exception while attempting to purge old cache items:");
-					Console.Error.WriteLine (ex);
-				}
+				DoRemoveOldItemsIfNecessary ();
 			});
 		}