diff options
author | Ankit Jain <radical@corewars.org> | 2006-01-28 01:03:39 +0300 |
---|---|---|
committer | Ankit Jain <radical@corewars.org> | 2006-01-28 01:03:39 +0300 |
commit | 11c86135deb89c5f3cfbd02293f3d90cb13be057 (patch) | |
tree | 709327ed1b83e426b2b363293c0e3a7c9dcff376 /mcs/ilasm | |
parent | f229623ac72656ab59d49ec41547519cc22bb5fb (diff) |
* MethodDef.cs:
* TypeManager.cs:
* MethodPointerTypeRef.cs:
* ExternMethodRef.cs: Remove unused variables to fix warnings.
svn path=/trunk/mcs/; revision=56192
Diffstat (limited to 'mcs/ilasm')
-rw-r--r-- | mcs/ilasm/codegen/ChangeLog | 7 | ||||
-rw-r--r-- | mcs/ilasm/codegen/ExternMethodRef.cs | 1 | ||||
-rw-r--r-- | mcs/ilasm/codegen/MethodDef.cs | 2 | ||||
-rw-r--r-- | mcs/ilasm/codegen/MethodPointerTypeRef.cs | 1 | ||||
-rw-r--r-- | mcs/ilasm/codegen/TypeManager.cs | 1 |
5 files changed, 7 insertions, 5 deletions
diff --git a/mcs/ilasm/codegen/ChangeLog b/mcs/ilasm/codegen/ChangeLog index df6bd173817..a99eb430559 100644 --- a/mcs/ilasm/codegen/ChangeLog +++ b/mcs/ilasm/codegen/ChangeLog @@ -1,5 +1,12 @@ 2006-01-28 Ankit Jain <jankit@novell.com> + * MethodDef.cs: + * TypeManager.cs: + * MethodPointerTypeRef.cs: + * ExternMethodRef.cs: Remove unused variables to fix warnings. + +2006-01-28 Ankit Jain <jankit@novell.com> + * TypeDef.cs (GenericInfo): * MethodDef.cs (GenericInfo): Remove (unused). diff --git a/mcs/ilasm/codegen/ExternMethodRef.cs b/mcs/ilasm/codegen/ExternMethodRef.cs index 77e57de79ad..c365675dba3 100644 --- a/mcs/ilasm/codegen/ExternMethodRef.cs +++ b/mcs/ilasm/codegen/ExternMethodRef.cs @@ -77,7 +77,6 @@ namespace Mono.ILASM { ret_type.Resolve (code_gen); - int count = 0; foreach (BaseTypeRef typeref in param) { if (in_opt) { typeref.Resolve (code_gen); diff --git a/mcs/ilasm/codegen/MethodDef.cs b/mcs/ilasm/codegen/MethodDef.cs index a6b86f4e4c4..074ee21e1af 100644 --- a/mcs/ilasm/codegen/MethodDef.cs +++ b/mcs/ilasm/codegen/MethodDef.cs @@ -466,7 +466,6 @@ namespace Mono.ILASM { if (local_list.Count > 0) { int ec = code_gen.Report.ErrorCount; PEAPI.Local[] local_array = new PEAPI.Local[local_list.Count]; - int i = 0; foreach (Local local in local_list) local_array[local.Slot] = local.GetPeapiLocal (code_gen); @@ -589,7 +588,6 @@ namespace Mono.ILASM { public LabelInfo AddLabel () { - int pos = inst_list.Count; LabelInfo label_info = new LabelInfo (null, inst_list.Count); label_list.Add (label_info); return label_info; diff --git a/mcs/ilasm/codegen/MethodPointerTypeRef.cs b/mcs/ilasm/codegen/MethodPointerTypeRef.cs index 70802842776..83364ffa4bc 100644 --- a/mcs/ilasm/codegen/MethodPointerTypeRef.cs +++ b/mcs/ilasm/codegen/MethodPointerTypeRef.cs @@ -43,7 +43,6 @@ namespace Mono.ILASM { if (param_list != null) { ArrayList opt_list = new ArrayList (); ArrayList arg_list = new ArrayList (); - ParamDef last = null; bool in_opt = false; int max = param_list.Count; diff --git a/mcs/ilasm/codegen/TypeManager.cs b/mcs/ilasm/codegen/TypeManager.cs index df19043bf53..029b3144632 100644 --- a/mcs/ilasm/codegen/TypeManager.cs +++ b/mcs/ilasm/codegen/TypeManager.cs @@ -21,7 +21,6 @@ namespace Mono.ILASM { { this.code_gen = code_gen; type_table = new Hashtable (); - Hashtable t = type_table; } public TypeDef this[string full_name] { |