Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2011-09-21 12:26:25 +0400
committerMarek Safar <marek.safar@gmail.com>2011-09-21 12:26:25 +0400
commit8a335c00ae5154b08adeb18451ce3b402381cf7a (patch)
tree91e5c79d6b6181e7a043e5448e4538ae72ad9fc1 /mcs/class/Mono.CodeContracts
parent4ab90e66420d7e648147b8cc638db9000cc9c19c (diff)
Remove few compiler workarounds
Diffstat (limited to 'mcs/class/Mono.CodeContracts')
-rw-r--r--mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite.AstVisitors/CompileVisitor.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite.AstVisitors/CompileVisitor.cs b/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite.AstVisitors/CompileVisitor.cs
index 6533555d5f7..176d088b8f1 100644
--- a/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite.AstVisitors/CompileVisitor.cs
+++ b/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite.AstVisitors/CompileVisitor.cs
@@ -102,8 +102,6 @@ namespace Mono.CodeContracts.Rewrite.AstVisitors {
return this.il.Create (OpCodes.Ldarg, index);
}
}
- // Required due to bug in compiler
- throw new NotSupportedException();
});
return e;
@@ -149,8 +147,6 @@ namespace Mono.CodeContracts.Rewrite.AstVisitors {
return this.il.Create (OpCodes.Ldc_I4, value);
}
}
- // Required due to bug in compiler
- throw new NotSupportedException();
case TypeCode.Single:
return this.il.Create (OpCodes.Ldc_R4, (float) v);
case TypeCode.Double:
@@ -160,8 +156,6 @@ namespace Mono.CodeContracts.Rewrite.AstVisitors {
default:
throw new NotSupportedException ("Cannot handle constant: " + vTypeCode);
}
- // Required due to bug in compiler
- throw new NotSupportedException();
});
return e;