Browse Source

Remove obsolete code

svn path=/trunk/mcs/; revision=119657
Marek Safar 17 years ago
parent
commit
e548aa5280
1 changed files with 2 additions and 16 deletions
  1. 2 16
      mcs/mcs/generic.cs

+ 2 - 16
mcs/mcs/generic.cs

@@ -910,21 +910,6 @@ namespace Mono.CSharp {
 			return false;
 		}
 
-		public static string GetSignatureForError (TypeParameter[] tp)
-		{
-			if (tp == null || tp.Length == 0)
-				return "";
-
-			StringBuilder sb = new StringBuilder ("<");
-			for (int i = 0; i < tp.Length; ++i) {
-				if (i > 0)
-					sb.Append (",");
-				sb.Append (tp[i].GetSignatureForError ());
-			}
-			sb.Append ('>');
-			return sb.ToString ();
-		}
-
 		public void InflateConstraints (Type declaring)
 		{
 			if (constraints != null)
@@ -1245,6 +1230,8 @@ namespace Mono.CSharp {
 			if (eclass != ExprClass.Invalid)
 				return this;
 
+			eclass = ExprClass.Type;
+
 			if (!args.Resolve (ec))
 				return null;
 
@@ -1260,7 +1247,6 @@ namespace Mono.CSharp {
 			// Now bind the parameters
 			//
 			type = open_type.MakeGenericType (atypes);
-			eclass = ExprClass.Type;
 			return this;
 		}