From ffedd29150614c517d4b3b29e6153fd4f03fd32a Mon Sep 17 00:00:00 2001 From: jbevain Date: Sun, 27 Mar 2011 11:42:06 +0200 Subject: Remove TableHeap.TableIdentifiers --- Mono.Cecil.Metadata/TableHeap.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Mono.Cecil.Metadata') diff --git a/Mono.Cecil.Metadata/TableHeap.cs b/Mono.Cecil.Metadata/TableHeap.cs index 2705c51..37a1948 100644 --- a/Mono.Cecil.Metadata/TableHeap.cs +++ b/Mono.Cecil.Metadata/TableHeap.cs @@ -90,15 +90,9 @@ namespace Mono.Cecil.Metadata { public long Valid; public long Sorted; - public static readonly Table [] TableIdentifiers; - public readonly TableInformation [] Tables = new TableInformation [45]; + public const int TableCount = 45; - static TableHeap () - { - TableIdentifiers = new Table [45]; - for (int i = 0; i < TableIdentifiers.Length; i++) - TableIdentifiers [i] = (Table) i; - } + public readonly TableInformation [] Tables = new TableInformation [TableCount]; public TableInformation this [Table table] { get { return Tables [(int) table]; } -- cgit v1.2.3