[corlib] Remove redundant checks from delegate::combine
[mono.git] / mcs / class / corlib / System / Delegate.cs
index 8b9ade4dd46b7159f2295bbba42f1caee1910819..26fff1d5c463c1d5886bb39fac040f1cd5e2b119 100644 (file)
@@ -524,17 +524,9 @@ namespace System
                /// </symmary>
                public static Delegate Combine (Delegate a, Delegate b)
                {
-                       if (a == null) {
-                               if (b == null)
-                                       return null;
+                       if (a == null)
                                return b;
-                       } else 
-                               if (b == null)
-                                       return a;
 
-                       if (a.GetType () != b.GetType ())
-                               throw new ArgumentException (Locale.GetText ("Incompatible Delegate Types. First is {0} second is {1}.", a.GetType ().FullName, b.GetType ().FullName));
-                       
                        return a.CombineImpl (b);
                }