Skip to content

Commit

Permalink
Remove some unwanted explicit casts
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed Feb 1, 2012
1 parent 008d2fd commit 9dd7272
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mcs/class/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs
Expand Up @@ -273,7 +273,7 @@ void Write (MyBinaryWriter bw, Guid guid)
//
methods.Sort ();
for (int i = 0; i < methods.Count; i++)
((MethodEntry) methods [i]).Index = i + 1;
methods [i].Index = i + 1;

//
// Write data sections.
Expand All @@ -292,7 +292,7 @@ void Write (MyBinaryWriter bw, Guid guid)
//
ot.MethodTableOffset = (int) bw.BaseStream.Position;
for (int i = 0; i < methods.Count; i++) {
MethodEntry entry = (MethodEntry) methods [i];
MethodEntry entry = methods [i];
entry.Write (bw);
}
ot.MethodTableSize = (int) bw.BaseStream.Position - ot.MethodTableOffset;
Expand All @@ -302,7 +302,7 @@ void Write (MyBinaryWriter bw, Guid guid)
//
ot.SourceTableOffset = (int) bw.BaseStream.Position;
for (int i = 0; i < sources.Count; i++) {
SourceFileEntry source = (SourceFileEntry) sources [i];
SourceFileEntry source = sources [i];
source.Write (bw);
}
ot.SourceTableSize = (int) bw.BaseStream.Position - ot.SourceTableOffset;
Expand All @@ -312,7 +312,7 @@ void Write (MyBinaryWriter bw, Guid guid)
//
ot.CompileUnitTableOffset = (int) bw.BaseStream.Position;
for (int i = 0; i < comp_units.Count; i++) {
CompileUnitEntry unit = (CompileUnitEntry) comp_units [i];
CompileUnitEntry unit = comp_units [i];
unit.Write (bw);
}
ot.CompileUnitTableSize = (int) bw.BaseStream.Position - ot.CompileUnitTableOffset;
Expand Down Expand Up @@ -621,7 +621,7 @@ public MethodEntry GetMethod (int index)

lock (this) {
read_methods ();
return (MethodEntry) method_list [index - 1];
return method_list [index - 1];
}
}

Expand Down

0 comments on commit 9dd7272

Please sign in to comment.