2003-02-09 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Sun, 9 Feb 2003 22:39:06 +0000 (22:39 -0000)
committerMartin Baulig <martin@novell.com>
Sun, 9 Feb 2003 22:39:06 +0000 (22:39 -0000)
* AssemblyBuilder.cs (AssemblyBuilder.methods): Removed.  This was
a hack for the symbol writer which is no longer needed.

svn path=/trunk/mcs/; revision=11423

mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs
mcs/class/corlib/System.Reflection.Emit/ChangeLog
mcs/class/corlib/System.Reflection.Emit/ModuleBuilder.cs

index 76bcc738b5e3e6d96466a9803cb6cf7cc3507d0d..b1520e1858b747e018412a890bf36f0cde4ba52d 100755 (executable)
@@ -45,7 +45,6 @@ namespace System.Reflection.Emit {
                internal Type corlib_value_type = typeof (System.ValueType);
                internal Type corlib_enum_type = typeof (System.Enum);
                private int[] table_indexes;
-               internal ArrayList methods;
                Hashtable us_string_cache = new Hashtable ();
 
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
@@ -66,11 +65,8 @@ namespace System.Reflection.Emit {
                                table_indexes [0x02] = 2;
                        }
                        // Console.WriteLine ("getindex for table "+table.ToString()+" got "+table_indexes [table].ToString());
-                       if (inc) {
-                               if ((table == 0x06) && (methods != null))
-                                       methods.Add (obj);
+                       if (inc)
                                return table_indexes [table]++;
-                       }
                        return table_indexes [table];
                }
 
index 7236cc2515640902076dd59295abf11426367ad1..249f907bcbee5026d87854fb7a6581c5f3e782d8 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-09  Martin Baulig  <martin@ximian.com>
+
+       * AssemblyBuilder.cs (AssemblyBuilder.methods): Removed.  This was
+       a hack for the symbol writer which is no longer needed.
+
 2003-02-09  Martin Baulig  <martin@ximian.com>
 
        * IMonoSymbolWriter.cs (DefineNamespace, OpenMethod): New methods.
index ba4d99d7b5fbd2a47d4a20c760fd946138ad4763..bb1be19f78dbfe03fcad11716166757ca67c94a8 100644 (file)
@@ -58,19 +58,14 @@ namespace System.Reflection.Emit {
                        if (type == null)
                                return;
 
-                       if (assemblyb.methods == null)
-                               assemblyb.methods = new ArrayList ();
-
                        // First get the constructor.
                        {
                                Type[] arg_types = new Type [2];
                                arg_types [0] = typeof (ModuleBuilder);
-                               arg_types [1] = typeof (ArrayList);
                                ConstructorInfo constructor = type.GetConstructor (arg_types);
 
-                               object[] args = new object [2];
+                               object[] args = new object [1];
                                args [0] = this;
-                               args [1] = assemblyb.methods;
 
                                if (constructor == null)
                                        return;