Permalink
Browse files

Remove some unwanted explicit casts

  • Loading branch information...
1 parent 008d2fd commit 9dd7272586b76666942e5beeeeb781442c7dfa59 @marek-safar marek-safar committed Jan 31, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 mcs/class/Mono.CompilerServices.SymbolWriter/MonoSymbolFile.cs
@@ -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.
@@ -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;
@@ -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;
@@ -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;
@@ -621,7 +621,7 @@ public MethodEntry GetMethod (int index)
lock (this) {
read_methods ();
- return (MethodEntry) method_list [index - 1];
+ return method_list [index - 1];
}
}

0 comments on commit 9dd7272

Please sign in to comment.