diff options
Diffstat (limited to 'mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite/ContractsRuntime.cs')
-rw-r--r-- | mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite/ContractsRuntime.cs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite/ContractsRuntime.cs b/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite/ContractsRuntime.cs index 5f8bff5d062..0fed5e43f17 100644 --- a/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite/ContractsRuntime.cs +++ b/mcs/class/Mono.CodeContracts/Mono.CodeContracts.Rewrite/ContractsRuntime.cs @@ -195,11 +195,7 @@ namespace Mono.CodeContracts.Rewrite { TypeReference typeContractFailureKind = this.module.Import (typeof (ContractFailureKind)); TypeReference typeString = this.module.Import (typeof (string)); TypeReference typeException = this.module.Import (typeof (Exception)); -#if NET_4_5 var helper = typeof (ContractHelper); -#else - var helper = typeof (System.Diagnostics.Contracts.Internal.ContractHelper); -#endif MethodReference mRaiseContractFailedEvent = this.module.Import (helper.GetMethod ("RaiseContractFailedEvent")); // Create method MethodDefinition method = new MethodDefinition ("ReportFailure", |