summaryrefslogtreecommitdiff
path: root/src/vm/domainfile.cpp
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-10-06 17:51:29 -0700
committerGitHub <noreply@github.com>2017-10-06 17:51:29 -0700
commit44736b809edaacc39d9bab1d18e04067e3fdb13d (patch)
tree8ac0851b332e1f981085c205fdfe3fb602175ef0 /src/vm/domainfile.cpp
parent273b482fd0345de3dadad6fee4544517b2b8de62 (diff)
downloadcoreclr-44736b809edaacc39d9bab1d18e04067e3fdb13d.tar.gz
coreclr-44736b809edaacc39d9bab1d18e04067e3fdb13d.tar.bz2
coreclr-44736b809edaacc39d9bab1d18e04067e3fdb13d.zip
Delete dead code (#14365)
Delete some dead code related to Windows Phone and code access security
Diffstat (limited to 'src/vm/domainfile.cpp')
-rw-r--r--src/vm/domainfile.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/vm/domainfile.cpp b/src/vm/domainfile.cpp
index e5736b7282..410884531e 100644
--- a/src/vm/domainfile.cpp
+++ b/src/vm/domainfile.cpp
@@ -1786,10 +1786,8 @@ void DomainAssembly::FindNativeImage()
ExternalLog(LL_ERROR, "Rejecting native image because mscorlib does not have native image");
GetFile()->ClearNativeImage();
-#ifdef FEATURE_WINDOWSPHONE
- // On Phone, always through exceptions when we throw the NI out
+ // Always throw exceptions when we throw the NI out
ThrowHR(CLR_E_BIND_SYS_ASM_NI_MISSING);
-#endif
}
else
if (!CheckZapSecurity(pNativeImage))
@@ -1802,11 +1800,8 @@ void DomainAssembly::FindNativeImage()
GetFile()->ClearNativeImage();
-#ifdef FEATURE_WINDOWSPHONE
- // On Phone, always through exceptions when we throw the NI out
+ // Always throw exceptions when we throw the NI out
ThrowHR(CLR_E_BIND_NI_SECURITY_FAILURE);
-#endif
-
}
else if (!CheckZapDependencyIdentities(pNativeImage))
{
@@ -1818,11 +1813,8 @@ void DomainAssembly::FindNativeImage()
GetFile()->ClearNativeImage();
-#ifdef FEATURE_WINDOWSPHONE
- // On Phone, always through exceptions when we throw the NI out
+ // Always throw exceptions when we throw the NI out
ThrowHR(CLR_E_BIND_NI_DEP_IDENTITY_MISMATCH);
-#endif
-
}
else
{