Reverted changes of commit 6ad7f75a3777652a535ef4356e6d193eed4ed612
[mono.git] / mcs / class / corlib / Test / System.Text / UTF8EncodingTest.cs
index 06720ba5165cc7d2bdca5c5f1d85581825c529f6..2601f066cfcb5ef4fec8fb01a983d066cde0da17 100644 (file)
@@ -1082,10 +1082,7 @@ namespace MonoTests.System.Text
 #else
                                Assert.Fail ("ArgumentException is expected: char[]");
 #endif
-                       } catch (ArgumentException ae) {
-#if NET_2_0
-                               throw ae;
-#endif
+                       } catch (ArgumentException) {
                        }
 
                        string s = "\uD800";
@@ -1096,10 +1093,7 @@ namespace MonoTests.System.Text
 #else
                                Assert.Fail ("ArgumentException is expected: string");
 #endif
-                       } catch (ArgumentException ae) {
-#if NET_2_0
-                               throw ae;
-#endif
+                       } catch (ArgumentException) {
                        }
                }